/* =========================================================
   WIRTZ HUB · RECURSOS · MOTOS
   CSS COMPLETO

   Diseño:
   - Moderno
   - Minimalista
   - Compacto
   - Sin glow
   - Líneas finas
   - Responsive
   - Modo oscuro negro real
   - Sin azul oscuro
   - Sin gris azulado
   ========================================================= */

/* =========================================================
   VARIABLES LOCALES · MODO CLARO
   ========================================================= */

.motos-page {
  --motos-page-bg: #f7f7f7;

  --motos-surface: #ffffff;
  --motos-surface-soft: #fafafa;
  --motos-surface-muted: #f3f3f3;
  --motos-surface-strong: #ebebeb;

  --motos-text: #151515;
  --motos-text-soft: #555555;
  --motos-text-muted: #8a8a8a;
  --motos-text-disabled: #ababab;

  --motos-line: rgba(0, 0, 0, 0.08);
  --motos-line-strong: rgba(0, 0, 0, 0.15);

  --motos-primary: #111111;
  --motos-primary-hover: #252525;
  --motos-primary-text: #ffffff;

  --motos-success: #137347;
  --motos-success-soft: rgba(19, 115, 71, 0.09);
  --motos-success-line: rgba(19, 115, 71, 0.22);

  --motos-warning: #8b6508;
  --motos-warning-soft: rgba(139, 101, 8, 0.09);
  --motos-warning-line: rgba(139, 101, 8, 0.22);

  --motos-danger: #b42318;
  --motos-danger-soft: rgba(180, 35, 24, 0.08);
  --motos-danger-line: rgba(180, 35, 24, 0.22);

  --motos-info: #3f3f3f;
  --motos-info-soft: rgba(0, 0, 0, 0.05);

  --motos-radius-xs: 6px;
  --motos-radius-sm: 9px;
  --motos-radius-md: 13px;
  --motos-radius-lg: 16px;

  --motos-shadow:
    0 10px 28px rgba(0, 0, 0, 0.06);

  --motos-transition:
    160ms ease;

  width: 100%;
  min-width: 0;
  min-height: 100%;

  color: var(--motos-text);
}

/* =========================================================
   MODO OSCURO · NEGRO REAL

   Sin azul oscuro.
   Sin gris azulado.
   Fondo principal negro.
   Superficies negras con pequeñas variaciones.
   ========================================================= */

html[data-theme="dark"] .motos-page,
body.dark .motos-page,
.dark .motos-page {
  --motos-page-bg: #000000;

  --motos-surface: #080808;
  --motos-surface-soft: #0d0d0d;
  --motos-surface-muted: #121212;
  --motos-surface-strong: #181818;

  --motos-text: #f5f5f5;
  --motos-text-soft: #bdbdbd;
  --motos-text-muted: #7d7d7d;
  --motos-text-disabled: #5a5a5a;

  --motos-line: rgba(255, 255, 255, 0.08);
  --motos-line-strong: rgba(255, 255, 255, 0.15);

  --motos-primary: #f5f5f5;
  --motos-primary-hover: #ffffff;
  --motos-primary-text: #000000;

  --motos-success: #6fd7a3;
  --motos-success-soft: rgba(111, 215, 163, 0.09);
  --motos-success-line: rgba(111, 215, 163, 0.2);

  --motos-warning: #e5c36a;
  --motos-warning-soft: rgba(229, 195, 106, 0.09);
  --motos-warning-line: rgba(229, 195, 106, 0.2);

  --motos-danger: #ff8a80;
  --motos-danger-soft: rgba(255, 138, 128, 0.08);
  --motos-danger-line: rgba(255, 138, 128, 0.2);

  --motos-info: #d7d7d7;
  --motos-info-soft: rgba(255, 255, 255, 0.05);

  --motos-shadow:
    0 18px 44px rgba(0, 0, 0, 0.72);
}

/* =========================================================
   FONDO DE LA PÁGINA
   ========================================================= */

html[data-theme="dark"] .motos-page,
body.dark .motos-page,
.dark .motos-page,
html[data-theme="dark"] .motos-page::before,
body.dark .motos-page::before,
.dark .motos-page::before {
  background: #000000;
}

/* =========================================================
   RESET LOCAL
   ========================================================= */

.motos-page,
.motos-page *,
.motos-modal-backdrop,
.motos-modal-backdrop *,
.motos-toast {
  box-sizing: border-box;
}

.motos-page button,
.motos-page input,
.motos-page select,
.motos-page textarea,
.motos-modal-backdrop button,
.motos-modal-backdrop input,
.motos-modal-backdrop select,
.motos-modal-backdrop textarea {
  font: inherit;
}

.motos-page button,
.motos-modal-backdrop button {
  -webkit-tap-highlight-color: transparent;
}

.motos-page img,
.motos-modal-backdrop img {
  display: block;
  max-width: 100%;
}

.motos-page .icon,
.motos-modal-backdrop .icon {
  width: 17px;
  height: 17px;

  flex: 0 0 auto;

  stroke-width: 1.8;
}

/* =========================================================
   CABECERA
   ========================================================= */

.motos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  margin-bottom: 18px;
}

.motos-brand {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
}

.motos-brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  color: var(--motos-text);
  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 11px;
}

.motos-brand__icon .icon {
  width: 20px;
  height: 20px;
}

.motos-brand > div {
  min-width: 0;
}

.motos-brand h2 {
  margin: 0;

  color: var(--motos-text);

  font-size: 21px;
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.motos-brand p {
  margin: 5px 0 0;

  color: var(--motos-text-soft);

  font-size: 13px;
  line-height: 1.45;
}

.motos-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  flex-wrap: wrap;
}

/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.motos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 38px;
  padding: 0 13px;

  color: var(--motos-text);
  background: var(--motos-surface);
  border: 1px solid var(--motos-line-strong);
  border-radius: 8px;

  font-size: 12.5px;
  font-weight: 660;
  line-height: 1;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color var(--motos-transition),
    background-color var(--motos-transition),
    border-color var(--motos-transition),
    transform var(--motos-transition),
    opacity var(--motos-transition);
}

.motos-btn:hover:not(:disabled) {
  color: var(--motos-text);
  background: var(--motos-surface-muted);
  border-color: var(--motos-line-strong);
}

.motos-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.motos-btn:focus-visible {
  outline: 2px solid var(--motos-text);
  outline-offset: 2px;
}

.motos-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.motos-btn--primary {
  color: var(--motos-primary-text);
  background: var(--motos-primary);
  border-color: var(--motos-primary);
}

.motos-btn--primary:hover:not(:disabled) {
  color: var(--motos-primary-text);
  background: var(--motos-primary-hover);
  border-color: var(--motos-primary-hover);
}

.motos-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  padding: 0;

  color: var(--motos-text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;

  cursor: pointer;

  transition:
    color var(--motos-transition),
    background-color var(--motos-transition),
    border-color var(--motos-transition);
}

.motos-icon-btn:hover {
  color: var(--motos-text);
  background: var(--motos-surface-strong);
  border-color: var(--motos-line);
}

.motos-icon-btn.is-danger:hover {
  color: var(--motos-danger);
  background: var(--motos-danger-soft);
  border-color: var(--motos-danger-line);
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.motos-metrics {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 1px;

  margin-bottom: 16px;

  overflow: hidden;

  background: var(--motos-line);
  border: 1px solid var(--motos-line);
  border-radius: 12px;
}

.motos-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
  min-height: 88px;
  padding: 14px 15px;

  background: var(--motos-surface);
}

.motos-metric span {
  color: var(--motos-text-muted);

  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motos-metric strong {
  margin-top: 6px;

  overflow: hidden;

  color: var(--motos-text);

  font-size: 22px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.03em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.motos-metric small {
  margin-top: 5px;

  color: var(--motos-text-soft);

  font-size: 11px;
  line-height: 1.3;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

.motos-panel {
  min-width: 0;
  overflow: hidden;

  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: var(--motos-radius-md);
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.motos-toolbar {
  display: grid;
  grid-template-columns:
    minmax(260px, 0.9fr)
    minmax(0, 2fr);
  gap: 12px;
  align-items: start;

  padding: 13px;

  background: var(--motos-surface);
  border-bottom: 1px solid var(--motos-line);
}

.motos-search {
  position: relative;

  display: flex;
  align-items: center;

  min-width: 0;
}

.motos-search .icon {
  position: absolute;
  left: 12px;
  z-index: 1;

  width: 16px;
  height: 16px;

  color: var(--motos-text-muted);

  pointer-events: none;
}

.motos-search input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 12px 0 38px;

  color: var(--motos-text);
  background: var(--motos-surface-soft);
  border: 1px solid var(--motos-line);
  border-radius: 8px;

  font-size: 12.5px;

  outline: none;

  transition:
    background-color var(--motos-transition),
    border-color var(--motos-transition);
}

.motos-search input::placeholder {
  color: var(--motos-text-muted);
}

.motos-search input:focus {
  background: var(--motos-surface);
  border-color: var(--motos-line-strong);
}

.motos-filter-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(110px, 1fr))
    repeat(2, minmax(95px, 0.8fr));
  gap: 8px;

  min-width: 0;
}

.motos-filter-grid select,
.motos-filter-grid input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 10px;

  color: var(--motos-text);
  background: var(--motos-surface-soft);
  border: 1px solid var(--motos-line);
  border-radius: 8px;

  font-size: 12px;

  outline: none;

  transition:
    background-color var(--motos-transition),
    border-color var(--motos-transition);
}

.motos-filter-grid select {
  cursor: pointer;
}

.motos-filter-grid select:focus,
.motos-filter-grid input:focus {
  background: var(--motos-surface);
  border-color: var(--motos-line-strong);
}

.motos-filter-grid input::placeholder {
  color: var(--motos-text-muted);
}

.motos-filter-grid .motos-btn {
  width: 100%;
}

/* =========================================================
   SELECTS · MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .motos-page select,
body.dark .motos-page select,
.dark .motos-page select,
html[data-theme="dark"] .motos-modal-backdrop select,
body.dark .motos-modal-backdrop select,
.dark .motos-modal-backdrop select {
  color-scheme: dark;
}

html[data-theme="dark"] .motos-page option,
body.dark .motos-page option,
.dark .motos-page option,
html[data-theme="dark"] .motos-modal-backdrop option,
body.dark .motos-modal-backdrop option,
.dark .motos-modal-backdrop option {
  color: #f5f5f5;
  background: #080808;
}

/* =========================================================
   TABLA
   ========================================================= */

.motos-table-wrap {
  width: 100%;
  min-width: 0;

  overflow: auto;
}

.motos-table {
  width: 100%;
  min-width: 1120px;

  border-collapse: collapse;
  table-layout: auto;
}

.motos-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 10px 12px;

  color: var(--motos-text-muted);
  background: var(--motos-surface-soft);
  border-bottom: 1px solid var(--motos-line);

  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.065em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.motos-table tbody td {
  padding: 10px 12px;

  color: var(--motos-text-soft);
  background: var(--motos-surface);
  border-bottom: 1px solid var(--motos-line);

  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
}

.motos-table tbody tr {
  transition:
    background-color var(--motos-transition);
}

.motos-table tbody tr:hover td {
  background: var(--motos-surface-soft);
}

.motos-table tbody tr:last-child td {
  border-bottom: 0;
}

.motos-table th:first-child,
.motos-table td:first-child {
  width: 62px;
}

.motos-table th:last-child,
.motos-table td:last-child {
  width: 150px;

  text-align: right;
}

.motos-table-main {
  display: flex;
  flex-direction: column;

  min-width: 140px;
  max-width: 260px;
}

.motos-table-main strong {
  overflow: hidden;

  color: var(--motos-text);

  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.25;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.motos-table-main span {
  margin-top: 2px;

  overflow: hidden;

  color: var(--motos-text-soft);

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.motos-table-main small {
  margin-top: 2px;

  overflow: hidden;

  color: var(--motos-text-muted);

  font-size: 10.5px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.motos-table-code {
  display: inline-flex;
  align-items: center;

  max-width: 170px;
  padding: 4px 7px;

  overflow: hidden;

  color: var(--motos-text-soft);
  background: var(--motos-surface-strong);
  border: 1px solid var(--motos-line);
  border-radius: 6px;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 10.5px;
  line-height: 1;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.motos-table-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  padding: 0;

  overflow: hidden;

  color: var(--motos-text-muted);
  background: var(--motos-surface-strong);
  border: 1px solid var(--motos-line);
  border-radius: 8px;

  cursor: zoom-in;
}

.motos-table-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.motos-table-image.is-empty {
  cursor: default;
}

.motos-table-image.is-empty .icon {
  width: 18px;
  height: 18px;
}

.motos-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

/* =========================================================
   ESTADOS
   ========================================================= */

.motos-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0 8px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-size: 10.5px;
  font-weight: 760;
  line-height: 1;

  white-space: nowrap;
}

.motos-status.is-active {
  color: var(--motos-success);
  background: var(--motos-success-soft);
  border-color: var(--motos-success-line);
}

.motos-status.is-inactive {
  color: var(--motos-text-muted);
  background: var(--motos-surface-strong);
  border-color: var(--motos-line);
}

/* =========================================================
   MENSAJES DE TABLA
   ========================================================= */

.motos-table-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 220px;
  padding: 28px;

  color: var(--motos-text-muted);

  text-align: center;
}

.motos-table-message .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
}

.motos-table-message strong {
  color: var(--motos-text);

  font-size: 13px;
  font-weight: 700;
}

.motos-table-message span {
  margin-top: 5px;

  color: var(--motos-text-soft);

  font-size: 11.5px;
}

.motos-table-message.is-error .icon,
.motos-table-message.is-error strong {
  color: var(--motos-danger);
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.motos-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  min-height: 56px;
  padding: 9px 13px;

  background: var(--motos-surface-soft);
  border-top: 1px solid var(--motos-line);
}

.motos-pagination__info {
  display: flex;
  align-items: baseline;
  gap: 5px;

  color: var(--motos-text-soft);

  font-size: 11.5px;
}

.motos-pagination__info strong {
  color: var(--motos-text);

  font-size: 13px;
  font-weight: 760;
}

.motos-pagination__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.motos-pagination__page {
  color: var(--motos-text-soft);

  font-size: 11.5px;

  white-space: nowrap;
}

.motos-pagination__page strong {
  color: var(--motos-text);

  font-weight: 760;
}

/* =========================================================
   BLOQUEO DE SCROLL CON MODAL
   ========================================================= */

html.has-modal-open,
html.has-modal-open body {
  overflow: hidden;
}

/* =========================================================
   FONDO DE MODALES
   ========================================================= */

.motos-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(2px);
}

/* =========================================================
   MODAL GENERAL
   ========================================================= */

.motos-modal {
  --motos-surface: #ffffff;
  --motos-surface-soft: #fafafa;
  --motos-surface-muted: #f3f3f3;
  --motos-surface-strong: #ebebeb;

  --motos-text: #151515;
  --motos-text-soft: #555555;
  --motos-text-muted: #8a8a8a;

  --motos-line: rgba(0, 0, 0, 0.08);
  --motos-line-strong: rgba(0, 0, 0, 0.15);

  --motos-primary: #111111;
  --motos-primary-hover: #252525;
  --motos-primary-text: #ffffff;

  --motos-success: #137347;
  --motos-success-soft: rgba(19, 115, 71, 0.09);
  --motos-success-line: rgba(19, 115, 71, 0.22);

  --motos-warning: #8b6508;
  --motos-warning-soft: rgba(139, 101, 8, 0.09);
  --motos-warning-line: rgba(139, 101, 8, 0.22);

  --motos-danger: #b42318;
  --motos-danger-soft: rgba(180, 35, 24, 0.08);
  --motos-danger-line: rgba(180, 35, 24, 0.22);

  display: flex;
  flex-direction: column;

  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);

  overflow: hidden;

  color: var(--motos-text);
  background: var(--motos-surface);
  border: 1px solid var(--motos-line-strong);
  border-radius: 15px;
  box-shadow: var(--motos-shadow);
}

/* =========================================================
   MODAL · MODO OSCURO NEGRO
   ========================================================= */

html[data-theme="dark"] .motos-modal,
body.dark .motos-modal,
.dark .motos-modal {
  --motos-surface: #050505;
  --motos-surface-soft: #0a0a0a;
  --motos-surface-muted: #101010;
  --motos-surface-strong: #171717;

  --motos-text: #f5f5f5;
  --motos-text-soft: #bdbdbd;
  --motos-text-muted: #7d7d7d;

  --motos-line: rgba(255, 255, 255, 0.08);
  --motos-line-strong: rgba(255, 255, 255, 0.15);

  --motos-primary: #f5f5f5;
  --motos-primary-hover: #ffffff;
  --motos-primary-text: #000000;

  --motos-success: #6fd7a3;
  --motos-success-soft: rgba(111, 215, 163, 0.09);
  --motos-success-line: rgba(111, 215, 163, 0.2);

  --motos-warning: #e5c36a;
  --motos-warning-soft: rgba(229, 195, 106, 0.09);
  --motos-warning-line: rgba(229, 195, 106, 0.2);

  --motos-danger: #ff8a80;
  --motos-danger-soft: rgba(255, 138, 128, 0.08);
  --motos-danger-line: rgba(255, 138, 128, 0.2);

  background: #050505;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.82);
}

.motos-modal--form {
  width: min(1080px, 100%);
}

.motos-modal--detail {
  width: min(1160px, 100%);
}

.motos-modal--import {
  width: min(1040px, 100%);
}

/* =========================================================
   CABECERA DE MODAL
   ========================================================= */

.motos-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 17px 18px 15px;

  background: var(--motos-surface);
  border-bottom: 1px solid var(--motos-line);
}

.motos-modal__header > div {
  min-width: 0;
}

.motos-modal__header > div > span {
  display: block;

  color: var(--motos-text-muted);

  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.09em;
}

.motos-modal__header h3 {
  margin: 4px 0 0;

  color: var(--motos-text);

  font-size: 19px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.motos-modal__header p {
  margin: 5px 0 0;

  color: var(--motos-text-soft);

  font-size: 11.5px;
  line-height: 1.4;
}

.motos-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;

  color: var(--motos-text-soft);
  background: transparent;
  border: 1px solid var(--motos-line);
  border-radius: 8px;

  cursor: pointer;

  transition:
    color var(--motos-transition),
    background-color var(--motos-transition),
    border-color var(--motos-transition);
}

.motos-modal__close:hover {
  color: var(--motos-text);
  background: var(--motos-surface-strong);
  border-color: var(--motos-line-strong);
}

/* =========================================================
   CUERPO Y FOOTER DEL MODAL
   ========================================================= */

.motos-modal__body {
  flex: 1 1 auto;
  min-height: 0;

  overflow: auto;

  background: var(--motos-surface-soft);
}

.motos-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;

  padding: 12px 18px;

  background: var(--motos-surface);
  border-top: 1px solid var(--motos-line);
}

/* =========================================================
   FORMULARIO DE MOTO
   ========================================================= */

.motos-form {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 14px;
}

.motos-form-section {
  padding: 14px;

  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 11px;
}

.motos-form-section__title {
  display: flex;
  flex-direction: column;

  margin-bottom: 12px;
}

.motos-form-section__title span {
  color: var(--motos-text-muted);

  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motos-form-section__title strong {
  margin-top: 3px;

  color: var(--motos-text);

  font-size: 13px;
  font-weight: 760;
}

.motos-form-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.motos-form-grid--content {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.motos-field {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.motos-field--full {
  grid-column: 1 / -1;
}

.motos-field label {
  margin-bottom: 6px;

  color: var(--motos-text-soft);

  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.motos-field label span {
  color: var(--motos-danger);
}

.motos-field input,
.motos-field select,
.motos-field textarea {
  width: 100%;
  min-width: 0;

  color: var(--motos-text);
  background: var(--motos-surface-soft);
  border: 1px solid var(--motos-line);
  border-radius: 8px;

  font-size: 12px;

  outline: none;

  transition:
    background-color var(--motos-transition),
    border-color var(--motos-transition);
}

.motos-field input,
.motos-field select {
  height: 38px;
  padding: 0 10px;
}

.motos-field textarea {
  min-height: 90px;
  padding: 10px 11px;

  line-height: 1.5;

  resize: vertical;
}

.motos-field input::placeholder,
.motos-field textarea::placeholder {
  color: var(--motos-text-muted);
}

.motos-field input:focus,
.motos-field select:focus,
.motos-field textarea:focus {
  background: var(--motos-surface);
  border-color: var(--motos-line-strong);
}

/* =========================================================
   HERRAMIENTAS DE IMAGEN
   ========================================================= */

.motos-image-tools {
  display: flex;
  align-items: center;
  gap: 8px;

  flex-wrap: wrap;

  margin-top: 8px;
}

.motos-form-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 150px;
  margin-top: 10px;

  overflow: hidden;

  color: var(--motos-text-muted);
  background: var(--motos-surface-soft);
  border: 1px dashed var(--motos-line-strong);
  border-radius: 9px;
}

.motos-form-image-preview .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 7px;
}

.motos-form-image-preview span {
  font-size: 11px;
}

.motos-form-image-preview.has-image {
  display: block;

  height: 220px;
  min-height: 0;

  border-style: solid;
}

.motos-form-image-preview img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  background: var(--motos-surface-strong);
}

/* =========================================================
   SWITCH GENERAL
   ========================================================= */

.motos-switch,
.motos-import-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  min-height: 64px;
  padding: 11px 12px;

  background: var(--motos-surface-soft);
  border: 1px solid var(--motos-line);
  border-radius: 9px;

  cursor: pointer;
}

.motos-switch > span,
.motos-import-option > span {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.motos-switch strong,
.motos-import-option strong {
  color: var(--motos-text);

  font-size: 12px;
  font-weight: 700;
}

.motos-switch small,
.motos-import-option small {
  margin-top: 3px;

  color: var(--motos-text-soft);

  font-size: 10.5px;
  line-height: 1.35;
}

.motos-switch input,
.motos-import-option input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.motos-switch b,
.motos-import-option b {
  position: relative;

  width: 38px;
  height: 21px;
  flex: 0 0 38px;

  background: var(--motos-surface-strong);
  border: 1px solid var(--motos-line-strong);
  border-radius: 999px;

  transition:
    background-color var(--motos-transition),
    border-color var(--motos-transition);
}

.motos-switch b::after,
.motos-import-option b::after {
  content: "";

  position: absolute;
  top: 3px;
  left: 3px;

  width: 13px;
  height: 13px;

  background: var(--motos-text-muted);
  border-radius: 50%;

  transition:
    transform var(--motos-transition),
    background-color var(--motos-transition);
}

.motos-switch input:checked + b,
.motos-import-option input:checked + b {
  background: var(--motos-primary);
  border-color: var(--motos-primary);
}

.motos-switch input:checked + b::after,
.motos-import-option input:checked + b::after {
  background: var(--motos-primary-text);

  transform: translateX(17px);
}

/* =========================================================
   DETALLE DE MOTO
   ========================================================= */

.motos-detail-layout {
  display: grid;
  grid-template-columns:
    260px
    minmax(0, 1fr);
  gap: 14px;

  padding: 14px;
}

.motos-detail-image {
  position: sticky;
  top: 14px;

  align-self: start;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.motos-detail-image > button {
  width: 100%;
  min-height: 250px;
  padding: 0;

  overflow: hidden;

  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 11px;

  cursor: zoom-in;
}

.motos-detail-image img {
  width: 100%;
  height: 250px;

  object-fit: contain;

  background: var(--motos-surface-strong);
}

.motos-detail-image__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 250px;

  color: var(--motos-text-muted);
  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 11px;
}

.motos-detail-image__empty .icon {
  width: 31px;
  height: 31px;
  margin-bottom: 8px;
}

.motos-detail-image__empty span {
  font-size: 11px;
}

.motos-detail-content {
  display: flex;
  flex-direction: column;
  gap: 11px;

  min-width: 0;
}

.motos-detail-section {
  padding: 13px;

  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 11px;
}

.motos-detail-section__title {
  display: flex;
  flex-direction: column;

  margin-bottom: 11px;
}

.motos-detail-section__title span {
  color: var(--motos-text-muted);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motos-detail-section__title strong {
  margin-top: 3px;

  color: var(--motos-text);

  font-size: 12.5px;
  font-weight: 760;
}

.motos-detail-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 1px;

  overflow: hidden;

  background: var(--motos-line);
  border: 1px solid var(--motos-line);
  border-radius: 8px;
}

.motos-detail-item {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 10px;

  background: var(--motos-surface-soft);
}

.motos-detail-item span {
  color: var(--motos-text-muted);

  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
}

.motos-detail-item strong {
  margin-top: 5px;

  overflow: hidden;

  color: var(--motos-text);

  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.motos-detail-text {
  margin: 0;

  color: var(--motos-text-soft);

  font-size: 11.5px;
  line-height: 1.65;

  white-space: pre-wrap;
}

/* =========================================================
   IMPORTACIÓN CSV · LAYOUT
   ========================================================= */

.motos-import-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;

  padding: 14px;
}

.motos-import-panel {
  padding: 14px;

  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 11px;
}

.motos-import-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 13px;
}

.motos-import-panel__head > div {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.motos-import-panel__head > div > span {
  color: var(--motos-text-muted);

  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.motos-import-panel__head > div > strong {
  margin-top: 3px;

  color: var(--motos-text);

  font-size: 13px;
  font-weight: 760;
}

/* =========================================================
   DROPZONE CSV
   ========================================================= */

.motos-import-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 210px;
  padding: 24px;

  color: var(--motos-text-soft);
  background: var(--motos-surface-soft);
  border: 1px dashed var(--motos-line-strong);
  border-radius: 11px;

  text-align: center;

  cursor: pointer;

  transition:
    color var(--motos-transition),
    background-color var(--motos-transition),
    border-color var(--motos-transition);
}

.motos-import-dropzone:hover {
  color: var(--motos-text);
  background: var(--motos-surface-muted);
  border-color: var(--motos-text-muted);
}

.motos-import-dropzone > .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;

  color: var(--motos-text-muted);
}

.motos-import-dropzone > strong {
  color: var(--motos-text);

  font-size: 13px;
  font-weight: 760;
}

.motos-import-dropzone > span {
  max-width: 520px;
  margin-top: 6px;

  color: var(--motos-text-soft);

  font-size: 11px;
  line-height: 1.55;
}

.motos-import-dropzone > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;
  margin-top: 14px;
  padding: 0 13px;

  color: var(--motos-primary-text);
  background: var(--motos-primary);
  border: 1px solid var(--motos-primary);
  border-radius: 8px;

  font-size: 11.5px;
  font-weight: 700;
}

/* =========================================================
   ARCHIVO CSV SELECCIONADO
   ========================================================= */

.motos-import-file-info {
  margin-top: 10px;
}

.motos-import-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 86px;
  padding: 14px;

  color: var(--motos-text-muted);
  background: var(--motos-surface-soft);
  border: 1px solid var(--motos-line);
  border-radius: 9px;

  text-align: center;
}

.motos-import-empty .icon {
  width: 21px;
  height: 21px;
  margin-bottom: 6px;
}

.motos-import-empty strong {
  color: var(--motos-text);

  font-size: 11.5px;
  font-weight: 700;
}

.motos-import-empty span {
  margin-top: 3px;

  color: var(--motos-text-soft);

  font-size: 10.5px;
}

.motos-import-file {
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 68px;
  padding: 10px 11px;

  background: var(--motos-surface-soft);
  border: 1px solid var(--motos-line);
  border-radius: 9px;
}

.motos-import-file__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  color: var(--motos-text);
  background: var(--motos-surface-strong);
  border: 1px solid var(--motos-line);
  border-radius: 8px;
}

.motos-import-file__body {
  display: flex;
  flex-direction: column;

  min-width: 0;
  flex: 1 1 auto;
}

.motos-import-file__body strong {
  overflow: hidden;

  color: var(--motos-text);

  font-size: 11.5px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.motos-import-file__body span {
  margin-top: 3px;

  color: var(--motos-text-muted);

  font-size: 10.5px;
}

/* =========================================================
   OPCIÓN DE IMPORTACIÓN
   ========================================================= */

.motos-import-option {
  margin-top: 10px;
}

/* =========================================================
   NOTAS DE IMPORTACIÓN
   ========================================================= */

.motos-import-notes {
  display: grid;
  grid-template-columns:
    minmax(130px, 0.36fr)
    minmax(0, 1fr);
  gap: 1px;

  margin-top: 10px;

  overflow: hidden;

  background: var(--motos-line);
  border: 1px solid var(--motos-line);
  border-radius: 9px;
}

.motos-import-notes strong,
.motos-import-notes span {
  padding: 9px 10px;

  background: var(--motos-surface-soft);
}

.motos-import-notes strong {
  color: var(--motos-text);

  font-size: 10.5px;
  font-weight: 700;
}

.motos-import-notes span {
  color: var(--motos-text-soft);

  font-size: 10.5px;
  line-height: 1.45;
}

/* =========================================================
   RESULTADO DE IMPORTACIÓN
   ========================================================= */

.motos-import-result-mount {
  min-width: 0;
}

.motos-import-result-mount[hidden] {
  display: none !important;
}

.motos-import-result {
  padding: 14px;

  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 11px;
}

.motos-import-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 12px;
}

.motos-import-result__head > div {
  display: flex;
  flex-direction: column;
}

.motos-import-result__head > div > span {
  color: var(--motos-text-muted);

  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.motos-import-result__head > div > strong {
  margin-top: 3px;

  color: var(--motos-text);

  font-size: 13px;
  font-weight: 760;
}

.motos-import-summary {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 1px;

  overflow: hidden;

  background: var(--motos-line);
  border: 1px solid var(--motos-line);
  border-radius: 9px;
}

.motos-import-summary article {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 78px;
  padding: 11px;

  background: var(--motos-surface-soft);
}

.motos-import-summary article span {
  color: var(--motos-text-muted);

  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.motos-import-summary article strong {
  margin-top: 6px;

  color: var(--motos-text);

  font-size: 20px;
  font-weight: 760;
  line-height: 1;
}

.motos-import-summary article.is-success strong {
  color: var(--motos-success);
}

.motos-import-summary article.is-updated strong {
  color: var(--motos-text);
}

.motos-import-summary article.is-warning strong {
  color: var(--motos-warning);
}

.motos-import-summary article.is-danger strong {
  color: var(--motos-danger);
}

/* =========================================================
   ERRORES DE IMPORTACIÓN
   ========================================================= */

.motos-import-errors {
  margin-top: 12px;
  padding: 12px;

  background: var(--motos-danger-soft);
  border: 1px solid var(--motos-danger-line);
  border-radius: 9px;
}

.motos-import-errors__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.motos-import-errors__title .icon {
  color: var(--motos-danger);
}

.motos-import-errors__title strong {
  color: var(--motos-danger);

  font-size: 11.5px;
  font-weight: 760;
}

.motos-import-errors__list {
  display: flex;
  flex-direction: column;
  gap: 7px;

  max-height: 280px;
  margin-top: 10px;

  overflow: auto;
}

.motos-import-errors__list article {
  padding: 9px 10px;

  background: var(--motos-surface);
  border: 1px solid var(--motos-danger-line);
  border-radius: 8px;
}

.motos-import-errors__list article strong {
  display: block;

  color: var(--motos-text);

  font-size: 10.5px;
  font-weight: 760;
}

.motos-import-errors__list article span {
  display: block;
  margin-top: 3px;

  color: var(--motos-text-muted);

  font-size: 10px;
}

.motos-import-errors__list article p {
  margin: 5px 0 0;

  color: var(--motos-danger);

  font-size: 10.5px;
  line-height: 1.45;
}

.motos-import-errors > small {
  display: block;
  margin-top: 9px;

  color: var(--motos-text-muted);

  font-size: 10px;
}

/* =========================================================
   OMITIDAS
   ========================================================= */

.motos-import-skipped {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 10px;
  padding: 9px 10px;

  color: var(--motos-warning);
  background: var(--motos-warning-soft);
  border: 1px solid var(--motos-warning-line);
  border-radius: 8px;
}

.motos-import-skipped span {
  font-size: 10.5px;
  font-weight: 650;
}

/* =========================================================
   MODAL DE IMAGEN
   ========================================================= */

.motos-image-modal {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: min(1100px, 100%);
  height: min(820px, calc(100vh - 36px));
  padding: 18px;

  overflow: hidden;

  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
}

.motos-image-modal img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  background: #000000;
}

.motos-image-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;

  color: #ffffff;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;

  cursor: pointer;
}

/* =========================================================
   TOAST
   ========================================================= */

.motos-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;

  max-width: min(
    380px,
    calc(100vw - 32px)
  );
  padding: 11px 14px;

  color: #ffffff;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;

  font-size: 12px;
  font-weight: 660;
  line-height: 1.4;

  opacity: 0;
  pointer-events: none;

  transform: translateY(8px);

  transition:
    opacity var(--motos-transition),
    transform var(--motos-transition);
}

.motos-toast.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.motos-toast.is-error {
  color: #ffffff;
  background: #8d1d16;
  border-color: rgba(255, 255, 255, 0.14);
}

.motos-toast.is-success {
  color: #ffffff;
  background: #0d5e39;
  border-color: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   CARGA
   ========================================================= */

.is-spinning {
  animation:
    motos-spin
    0.8s
    linear
    infinite;
}

@keyframes motos-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   SCROLLBARS
   ========================================================= */

.motos-table-wrap,
.motos-modal__body,
.motos-import-errors__list {
  scrollbar-width: thin;
  scrollbar-color:
    var(--motos-line-strong)
    transparent;
}

.motos-table-wrap::-webkit-scrollbar,
.motos-modal__body::-webkit-scrollbar,
.motos-import-errors__list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.motos-table-wrap::-webkit-scrollbar-track,
.motos-modal__body::-webkit-scrollbar-track,
.motos-import-errors__list::-webkit-scrollbar-track {
  background: transparent;
}

.motos-table-wrap::-webkit-scrollbar-thumb,
.motos-modal__body::-webkit-scrollbar-thumb,
.motos-import-errors__list::-webkit-scrollbar-thumb {
  background: var(--motos-line-strong);
  border-radius: 999px;
}

/* =========================================================
   FORZAR NEGRO EN MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .motos-page,
html[data-theme="dark"] .motos-panel,
html[data-theme="dark"] .motos-toolbar,
html[data-theme="dark"] .motos-pagination,
html[data-theme="dark"] .motos-modal,
html[data-theme="dark"] .motos-modal__header,
html[data-theme="dark"] .motos-modal__footer,
html[data-theme="dark"] .motos-import-panel,
html[data-theme="dark"] .motos-import-result,
body.dark .motos-page,
body.dark .motos-panel,
body.dark .motos-toolbar,
body.dark .motos-pagination,
body.dark .motos-modal,
body.dark .motos-modal__header,
body.dark .motos-modal__footer,
body.dark .motos-import-panel,
body.dark .motos-import-result,
.dark .motos-page,
.dark .motos-panel,
.dark .motos-toolbar,
.dark .motos-pagination,
.dark .motos-modal,
.dark .motos-modal__header,
.dark .motos-modal__footer,
.dark .motos-import-panel,
.dark .motos-import-result {
  background-image: none;
}

html[data-theme="dark"] .motos-page,
body.dark .motos-page,
.dark .motos-page {
  background-color: #000000;
}

html[data-theme="dark"] .motos-panel,
body.dark .motos-panel,
.dark .motos-panel {
  background-color: #080808;
}

html[data-theme="dark"] .motos-modal-backdrop,
body.dark .motos-modal-backdrop,
.dark .motos-modal-backdrop {
  background: rgba(0, 0, 0, 0.84);
}

html[data-theme="dark"] .motos-modal,
body.dark .motos-modal,
.dark .motos-modal {
  background-color: #050505;
}

html[data-theme="dark"] .motos-modal__body,
body.dark .motos-modal__body,
.dark .motos-modal__body {
  background-color: #0a0a0a;
}

html[data-theme="dark"] .motos-table thead th,
body.dark .motos-table thead th,
.dark .motos-table thead th {
  background-color: #0d0d0d;
}

html[data-theme="dark"] .motos-table tbody td,
body.dark .motos-table tbody td,
.dark .motos-table tbody td {
  background-color: #080808;
}

html[data-theme="dark"] .motos-table tbody tr:hover td,
body.dark .motos-table tbody tr:hover td,
.dark .motos-table tbody tr:hover td {
  background-color: #101010;
}

/* =========================================================
   RESPONSIVE · 1440
   ========================================================= */

@media (max-width: 1440px) {
  .motos-metrics {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .motos-toolbar {
    grid-template-columns: 1fr;
  }

  .motos-filter-grid {
    grid-template-columns:
      repeat(5, minmax(120px, 1fr));
  }

  .motos-form-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .motos-detail-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE · 1100
   ========================================================= */

@media (max-width: 1100px) {
  .motos-filter-grid {
    grid-template-columns:
      repeat(3, minmax(120px, 1fr));
  }

  .motos-form-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-detail-layout {
    grid-template-columns:
      220px
      minmax(0, 1fr);
  }

  .motos-detail-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-import-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE · 760
   ========================================================= */

@media (max-width: 760px) {
  .motos-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .motos-head__actions {
    width: 100%;
    justify-content: stretch;
  }

  .motos-head__actions .motos-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .motos-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-filter-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .motos-pagination__controls {
    justify-content: space-between;
  }

  .motos-modal-backdrop {
    padding: 8px;
  }

  .motos-modal {
    max-height: calc(100vh - 16px);

    border-radius: 11px;
  }

  .motos-modal__header {
    padding: 14px;
  }

  .motos-modal__footer {
    padding: 10px 14px;
  }

  .motos-form {
    padding: 10px;
  }

  .motos-form-grid,
  .motos-form-grid--content {
    grid-template-columns: 1fr;
  }

  .motos-detail-layout {
    grid-template-columns: 1fr;
  }

  .motos-detail-image {
    position: static;
  }

  .motos-detail-image > button,
  .motos-detail-image img,
  .motos-detail-image__empty {
    height: 210px;
    min-height: 210px;
  }

  .motos-detail-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-import-panel__head,
  .motos-import-result__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .motos-import-panel__head .motos-btn,
  .motos-import-result__head .motos-btn {
    width: 100%;
  }

  .motos-import-notes {
    grid-template-columns: 1fr;
  }

  .motos-import-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE · 520
   ========================================================= */

@media (max-width: 520px) {
  .motos-brand h2 {
    font-size: 18px;
  }

  .motos-brand p {
    font-size: 11.5px;
  }

  .motos-head__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .motos-head__actions .motos-btn {
    width: 100%;
  }

  .motos-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .motos-metric {
    min-height: 78px;
    padding: 12px;
  }

  .motos-metric strong {
    font-size: 19px;
  }

  .motos-filter-grid {
    grid-template-columns: 1fr;
  }

  .motos-toolbar {
    padding: 10px;
  }

  .motos-pagination__controls {
    flex-wrap: wrap;
  }

  .motos-pagination__controls .motos-btn {
    flex: 1 1 0;
  }

  .motos-pagination__page {
    width: 100%;

    text-align: center;

    order: -1;
  }

  .motos-modal__footer {
    flex-wrap: wrap;
  }

  .motos-modal__footer .motos-btn {
    flex: 1 1 0;
  }

  .motos-detail-grid {
    grid-template-columns: 1fr;
  }

  .motos-image-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .motos-image-tools .motos-btn {
    width: 100%;
  }

  .motos-import-dropzone {
    min-height: 180px;
    padding: 18px 14px;
  }

  .motos-import-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-import-summary article {
    min-height: 72px;
  }

  .motos-import-option {
    align-items: flex-start;
  }

  .motos-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;

    max-width: none;
  }
}/* =========================================================
   WIRTZ HUB · MOTOS
   IGUALAR ESCALA CON DESCRIPCIÓN DE PRODUCTOS
   ========================================================= */

.motos-page {
  display: grid;
  grid-template-rows:
    auto
    auto
    minmax(0, 1fr);

  gap: 7px;

  width: 100%;
  min-width: 0;

  height:
    calc(
      100vh -
      var(--topbar-height, 56px) -
      42px
    );

  min-height: 580px;

  overflow: hidden;
}

/* =========================================================
   CABECERA
   ========================================================= */

.motos-head {
  min-height: 58px;

  margin-bottom: 0;
  padding: 8px 11px;

  background: var(--motos-surface);
  border: 1px solid var(--motos-line);
  border-radius: 14px;
}

.motos-brand {
  gap: 9px;
}

.motos-brand__icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;

  border-radius: 9px;
}

.motos-brand__icon .icon {
  width: 16px;
  height: 16px;
}

.motos-brand h2 {
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.motos-brand p {
  margin-top: 3px;

  font-size: 9.5px;
  line-height: 1.3;
}

/* =========================================================
   BOTONES
   ========================================================= */

.motos-btn {
  min-height: 32px;

  padding: 0 10px;

  border-radius: 8px;

  font-size: 9.5px;
  font-weight: 900;
}

.motos-btn .icon {
  width: 14px;
  height: 14px;
}

.motos-icon-btn {
  width: 27px;
  height: 27px;

  border: 1px solid var(--motos-line);
  border-radius: 7px;
}

.motos-icon-btn .icon {
  width: 12px;
  height: 12px;
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.motos-metrics {
  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 0;

  margin-bottom: 0;

  border-radius: 14px;
}

.motos-metric {
  min-height: 48px;

  padding: 7px 9px;

  border-right: 1px solid var(--motos-line);
}

.motos-metric:last-child {
  border-right: 0;
}

.motos-metric span {
  font-size: 7.5px;
  font-weight: 950;
  line-height: 1;
}

.motos-metric strong {
  margin-top: 3px;

  font-size: 15px;
  font-weight: 950;
}

.motos-metric small {
  margin-top: 2px;

  font-size: 8px;
  line-height: 1.15;
}

/* =========================================================
   PANEL
   ========================================================= */

.motos-panel {
  display: grid;
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto;

  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;

  border-radius: 14px;
}

/* =========================================================
   FILTROS
   ========================================================= */

.motos-toolbar {
  display: grid;
  grid-template-columns: 1fr;

  gap: 7px;

  padding: 8px 10px;
}

.motos-search {
  width: 100%;
}

.motos-search input {
  height: 34px;

  padding:
    0
    10px
    0
    31px;

  border-radius: 8px;

  font-size: 9.8px;
  font-weight: 760;
}

.motos-search .icon {
  left: 10px;

  width: 13px;
  height: 13px;
}

.motos-filter-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(105px, 1fr));

  gap: 6px;
}

.motos-filter-grid select,
.motos-filter-grid input {
  height: 34px;

  padding:
    0
    9px;

  border-radius: 8px;

  font-size: 9px;
  font-weight: 780;
}

/* =========================================================
   TABLA
   ========================================================= */

.motos-table-wrap {
  min-height: 0;
  height: 100%;

  overflow-x: auto;
  overflow-y: auto;

  scrollbar-gutter: stable;
}

.motos-table {
  width: 100%;
  min-width: 1180px;

  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.motos-table thead th {
  height: 33px;

  padding:
    0
    9px;

  font-size: 7.4px;
  font-weight: 950;
  line-height: 1;
}

.motos-table tbody td {
  height: 38px;

  padding:
    0
    9px;

  font-size: 9.4px;
  font-weight: 720;
  line-height: 1.2;
}

.motos-table tbody tr:hover td:first-child {
  box-shadow:
    inset 2px 0 0
    var(--motos-text);
}

/* =========================================================
   ANCHOS DE COLUMNAS
   ========================================================= */

.motos-table th:nth-child(1),
.motos-table td:nth-child(1) {
  width: 58px;
}

.motos-table th:nth-child(2),
.motos-table td:nth-child(2) {
  width: 220px;
}

.motos-table th:nth-child(3),
.motos-table td:nth-child(3) {
  width: 145px;
}

.motos-table th:nth-child(4),
.motos-table td:nth-child(4) {
  width: 100px;
}

.motos-table th:nth-child(5),
.motos-table td:nth-child(5) {
  width: 120px;
}

.motos-table th:nth-child(6),
.motos-table td:nth-child(6) {
  width: 180px;
}

.motos-table th:nth-child(7),
.motos-table td:nth-child(7) {
  width: 115px;
}

.motos-table th:nth-child(8),
.motos-table td:nth-child(8) {
  width: 120px;
}

.motos-table th:nth-child(9),
.motos-table td:nth-child(9) {
  width: 95px;
}

/* =========================================================
   ACCIONES FIJAS
   ========================================================= */

.motos-table th:last-child,
.motos-table td:last-child {
  position: sticky;
  right: 0;

  width: 132px;
  min-width: 132px;
  max-width: 132px;

  padding:
    0
    7px;

  background: var(--motos-surface);

  border-left: 1px solid var(--motos-line);

  box-shadow:
    -10px 0 18px
    rgba(0, 0, 0, 0.05);
}

.motos-table th:last-child {
  z-index: 20;

  background: var(--motos-surface-soft);
}

.motos-table td:last-child {
  z-index: 10;
}

.motos-table tbody tr:hover td:last-child {
  background: var(--motos-surface-soft);
}

.motos-table-actions {
  justify-content: center;
  gap: 4px;
}

/* =========================================================
   CONTENIDO DE TABLA
   ========================================================= */

.motos-table-main {
  min-width: 0;
  max-width: 100%;
}

.motos-table-main strong {
  font-size: 9.8px;
  font-weight: 900;
  line-height: 1.15;
}

.motos-table-main span {
  margin-top: 2px;

  font-size: 8.4px;
  line-height: 1.1;
}

.motos-table-main small {
  margin-top: 1px;

  font-size: 7.7px;
}

.motos-table-code {
  max-width: 125px;

  padding: 3px 6px;

  font-size: 8.5px;
}

.motos-table-image {
  width: 30px;
  height: 30px;

  border-radius: 7px;
}

.motos-table-image.is-empty .icon {
  width: 14px;
  height: 14px;
}

/* =========================================================
   ESTADO
   ========================================================= */

.motos-status {
  min-height: 21px;

  padding:
    0
    7px;

  font-size: 7.8px;
  font-weight: 950;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.motos-pagination {
  min-height: 44px;

  padding:
    6px
    10px;
}

.motos-pagination__info {
  font-size: 8.8px;
}

.motos-pagination__info strong {
  font-size: 9.5px;
  font-weight: 950;
}

.motos-pagination__controls {
  gap: 5px;
}

.motos-pagination__page {
  font-size: 8.8px;
}

/* =========================================================
   MODALES · MISMA ESCALA
   ========================================================= */

.motos-modal__header {
  min-height: 64px;

  padding:
    10px
    12px;
}

.motos-modal__header h3 {
  font-size: 16px;
  font-weight: 950;
}

.motos-modal__header p {
  font-size: 8.8px;
}

.motos-modal__close {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.motos-modal__footer {
  min-height: 49px;

  padding:
    7px
    10px;
}

.motos-form {
  gap: 8px;

  padding: 10px;
}

.motos-form-section {
  padding: 10px;

  border-radius: 10px;
}

.motos-form-section__title {
  margin-bottom: 9px;
}

.motos-form-section__title span {
  font-size: 7.7px;
}

.motos-form-section__title strong {
  font-size: 13px;
}

.motos-form-grid {
  gap: 7px;
}

.motos-field label {
  margin-bottom: 4px;

  font-size: 7.7px;
  font-weight: 900;

  text-transform: uppercase;
}

.motos-field input,
.motos-field select {
  height: 32px;

  padding:
    0
    8px;

  font-size: 9.2px;
}

.motos-field textarea {
  min-height: 80px;

  padding: 8px;

  font-size: 9.2px;
}

/* =========================================================
   MODO OSCURO · ACCIONES
   ========================================================= */

html[data-theme="dark"]
  .motos-table th:last-child,
html[data-theme="dark"]
  .motos-table td:last-child,
body.dark
  .motos-table th:last-child,
body.dark
  .motos-table td:last-child,
.dark
  .motos-table th:last-child,
.dark
  .motos-table td:last-child {
  box-shadow:
    -10px 0 20px
    rgba(0, 0, 0, 0.72);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1450px) {
  .motos-page {
    height: auto;
    min-height:
      calc(
        100vh -
        var(--topbar-height, 56px) -
        42px
      );

    overflow: visible;
  }

  .motos-panel {
    min-height: 620px;
    height: auto;
  }

  .motos-table-wrap {
    min-height: 450px;

    max-height:
      calc(
        100vh -
        310px
      );
  }

  .motos-filter-grid {
    grid-template-columns:
      repeat(5, minmax(100px, 1fr));
  }
}

@media (max-width: 1100px) {
  .motos-filter-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .motos-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .motos-head__actions {
    width: 100%;
  }

  .motos-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-filter-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .motos-panel {
    height: auto;
    min-height: 560px;
  }

  .motos-table-wrap {
    min-height: 430px;
    max-height: none;
  }
}

@media (max-width: 520px) {
  .motos-filter-grid {
    grid-template-columns: 1fr;
  }

  .motos-metrics {
    grid-template-columns: 1fr;
  }

  .motos-head__actions {
    grid-template-columns: 1fr 1fr;
  }
}/* =========================================================
   MOTOS
   MISMO TAMAÑO + TABLA CUADRICULADA + SCROLL DE PÁGINA
   Agregar al FINAL de motos.css
   ========================================================= */

/* =========================================================
   CONTENIDO GENERAL · TODO EL ANCHO
   ========================================================= */

.app-content:has(.motos-page) {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;

  padding:
    10px !important;

  overflow: visible !important;
}

.motos-page {
  display: grid !important;
  grid-template-rows:
    auto
    auto
    auto !important;

  align-content: start !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  gap: 12px !important;

  overflow: visible !important;
}

/* =========================================================
   CABECERA · MISMO TAMAÑO
   ========================================================= */

.motos-head {
  display: grid !important;

  grid-template-columns:
    minmax(280px, 1fr)
    auto !important;

  align-items: center !important;

  width: 100% !important;

  min-height: 92px !important;

  margin-bottom: 0 !important;

  padding:
    15px
    17px !important;

  gap: 16px !important;

  background:
    var(--motos-surface) !important;

  border:
    1px solid
    var(--motos-line) !important;

  border-radius:
    13px !important;
}

.motos-brand {
  gap: 13px !important;
}

.motos-brand__icon {
  width: 46px !important;
  height: 46px !important;

  min-width: 46px !important;
  max-width: 46px !important;

  min-height: 46px !important;
  max-height: 46px !important;

  flex:
    0
    0
    46px !important;

  border-radius:
    11px !important;
}

.motos-brand__icon .icon,
.motos-brand__icon svg {
  width: 21px !important;
  height: 21px !important;

  min-width: 21px !important;
  min-height: 21px !important;
}

.motos-brand h2 {
  font-size:
    clamp(
      24px,
      2.1vw,
      30px
    ) !important;

  font-weight: 950 !important;
  line-height: 1 !important;
}

.motos-brand p {
  margin-top: 6px !important;

  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

/* =========================================================
   BOTONES
   ========================================================= */

.motos-btn {
  min-height: 36px !important;
  height: 36px !important;

  padding:
    0
    12px !important;

  gap: 7px !important;

  border-radius:
    9px !important;

  font-size: 11px !important;
  font-weight: 900 !important;
}

.motos-btn .icon,
.motos-btn svg {
  width: 15px !important;
  height: 15px !important;

  min-width: 15px !important;
  min-height: 15px !important;
}

.motos-icon-btn {
  display: grid !important;
  place-items: center !important;

  width: 30px !important;
  height: 30px !important;

  min-width: 30px !important;
  max-width: 30px !important;

  min-height: 30px !important;
  max-height: 30px !important;

  padding: 0 !important;

  border:
    1px solid
    var(--motos-line) !important;

  border-radius:
    8px !important;
}

.motos-icon-btn .icon,
.motos-icon-btn svg {
  width: 14px !important;
  height: 14px !important;

  min-width: 14px !important;
  min-height: 14px !important;
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.motos-metrics {
  grid-template-columns:
    repeat(
      6,
      minmax(0, 1fr)
    ) !important;

  gap: 1px !important;

  width: 100% !important;

  margin-bottom: 0 !important;

  border-radius:
    13px !important;
}

.motos-metric {
  min-height: 72px !important;

  padding:
    11px
    12px !important;
}

.motos-metric span {
  font-size: 9px !important;
  font-weight: 900 !important;
}

.motos-metric strong {
  margin-top: 5px !important;

  font-size: 19px !important;
  font-weight: 950 !important;
}

.motos-metric small {
  margin-top: 5px !important;

  font-size: 9.5px !important;
  font-weight: 700 !important;
}

/* =========================================================
   PANEL PRINCIPAL · SIN ALTURA FIJA
   ========================================================= */

.motos-panel {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  border-radius:
    13px !important;

  overflow: visible !important;
}

/* =========================================================
   FILTROS
   ========================================================= */

.motos-toolbar {
  display: grid !important;

  grid-template-columns:
    minmax(300px, 1fr)
    minmax(0, 2fr) !important;

  align-items: center !important;

  width: 100% !important;

  gap: 10px !important;

  padding:
    12px !important;
}

.motos-search {
  width: 100% !important;
  min-width: 0 !important;
}

.motos-search input {
  width: 100% !important;

  height: 38px !important;
  min-height: 38px !important;

  padding:
    0
    11px
    0
    35px !important;

  border-radius:
    9px !important;

  font-size: 10.5px !important;
  font-weight: 800 !important;
}

.motos-search .icon,
.motos-search svg {
  left: 12px !important;

  width: 14px !important;
  height: 14px !important;
}

.motos-filter-grid {
  display: grid !important;

  grid-template-columns:
    repeat(
      5,
      minmax(110px, 1fr)
    ) !important;

  width: 100% !important;
  min-width: 0 !important;

  gap: 7px !important;
}

.motos-filter-grid select,
.motos-filter-grid input {
  width: 100% !important;
  min-width: 0 !important;

  height: 38px !important;
  min-height: 38px !important;

  padding:
    0
    10px !important;

  border-radius:
    9px !important;

  font-size: 10.3px !important;
  font-weight: 800 !important;
}

/* =========================================================
   TABLA · SCROLL HORIZONTAL, PÁGINA VERTICAL
   ========================================================= */

.motos-table-wrap {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow-x: auto !important;
  overflow-y: visible !important;

  scrollbar-gutter:
    auto !important;

  overscroll-behavior:
    auto !important;
}

/* =========================================================
   TABLA · CUADRÍCULA VISIBLE
   ========================================================= */

.motos-table {
  width: 100% !important;
  min-width: 1180px !important;
  max-width: none !important;

  border-collapse:
    separate !important;

  border-spacing:
    0 !important;

  table-layout:
    fixed !important;

  border:
    1px solid
    var(--motos-line-strong) !important;
}

.motos-table thead {
  position: static !important;
}

.motos-table thead th,
.motos-table tbody td {
  border-right:
    1px solid
    var(--motos-line) !important;

  border-bottom:
    1px solid
    var(--motos-line) !important;
}

.motos-table thead th:last-child,
.motos-table tbody td:last-child {
  border-right:
    0 !important;
}

.motos-table tbody tr:last-child td {
  border-bottom:
    0 !important;
}

/* Encabezado */

.motos-table thead th {
  position: static !important;

  height: 42px !important;

  padding:
    0
    9px !important;

  color:
    var(--motos-text-muted) !important;

  background:
    var(--motos-surface-muted) !important;

  border-bottom:
    1px solid
    var(--motos-line-strong) !important;

  font-size: 8.5px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

/* Filas */

.motos-table tbody td {
  height: 50px !important;

  padding:
    0
    9px !important;

  font-size: 10px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

.motos-table tbody tr:nth-child(even) td {
  background:
    color-mix(
      in srgb,
      var(--motos-surface-muted) 38%,
      var(--motos-surface)
    ) !important;
}

.motos-table tbody tr:hover td {
  background:
    var(--motos-surface-muted) !important;
}

.motos-table tbody tr:hover td:first-child {
  box-shadow:
    inset
    2px
    0
    0
    var(--motos-text) !important;
}

/* =========================================================
   ANCHOS DE COLUMNAS
   ========================================================= */

.motos-table th:nth-child(1),
.motos-table td:nth-child(1) {
  width: 70px !important;

  text-align: center !important;
}

.motos-table th:nth-child(2),
.motos-table td:nth-child(2) {
  width: 220px !important;
}

.motos-table th:nth-child(3),
.motos-table td:nth-child(3) {
  width: 145px !important;
}

.motos-table th:nth-child(4),
.motos-table td:nth-child(4) {
  width: 110px !important;
}

.motos-table th:nth-child(5),
.motos-table td:nth-child(5) {
  width: 125px !important;
}

.motos-table th:nth-child(6),
.motos-table td:nth-child(6) {
  width: 190px !important;
}

.motos-table th:nth-child(7),
.motos-table td:nth-child(7) {
  width: 125px !important;
}

.motos-table th:nth-child(8),
.motos-table td:nth-child(8) {
  width: 130px !important;
}

.motos-table th:nth-child(9),
.motos-table td:nth-child(9) {
  width: 105px !important;
}

.motos-table th:nth-child(10),
.motos-table td:nth-child(10) {
  width: 165px !important;
  min-width: 165px !important;
  max-width: 165px !important;

  text-align: center !important;
}

/* =========================================================
   CONTENIDO DE TABLA
   ========================================================= */

.motos-table-main {
  min-width: 0 !important;
  max-width: 100% !important;
}

.motos-table-main strong {
  font-size: 10.5px !important;
  font-weight: 950 !important;
}

.motos-table-main span {
  margin-top: 3px !important;

  font-size: 9px !important;
}

.motos-table-main small {
  margin-top: 2px !important;

  font-size: 8px !important;
}

.motos-table-code {
  max-width: 100% !important;

  padding:
    4px
    7px !important;

  font-size: 9px !important;
}

.motos-table-image {
  width: 34px !important;
  height: 34px !important;

  border-radius:
    8px !important;
}

.motos-status {
  min-height: 24px !important;

  padding:
    4px
    8px !important;

  font-size: 8.5px !important;
  font-weight: 950 !important;
}

/* =========================================================
   ACCIONES
   ========================================================= */

.motos-table th:last-child,
.motos-table td:last-child {
  position: static !important;

  right: auto !important;

  background:
    inherit !important;

  border-left:
    1px solid
    var(--motos-line-strong) !important;

  box-shadow:
    none !important;
}

.motos-table thead th:last-child {
  background:
    var(--motos-surface-muted) !important;
}

.motos-table-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;

  gap: 5px !important;

  overflow: visible !important;
}

/* =========================================================
   PAGINACIÓN · DEBAJO DE TODA LA LISTA
   ========================================================= */

.motos-pagination {
  position: static !important;

  width: 100% !important;

  min-height: 52px !important;

  padding:
    8px
    12px !important;

  background:
    var(--motos-surface-soft) !important;

  border:
    1px solid
    var(--motos-line) !important;

  border-top:
    0 !important;

  border-radius:
    0
    0
    13px
    13px !important;
}

.motos-pagination__info,
.motos-pagination__page {
  font-size: 10px !important;
}

.motos-pagination__info strong,
.motos-pagination__page strong {
  font-size: 10.5px !important;
  font-weight: 950 !important;
}

/* =========================================================
   FOOTER · DEBAJO DE LA LISTA
   ========================================================= */

body:has(.motos-page) .app-main {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

body:has(.motos-page) .app-shell {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

body:has(.motos-page) .app-footer,
body:has(.motos-page) #footerMount,
body:has(.motos-page) footer.app-footer {
  position: static !important;

  inset: auto !important;

  width: 100% !important;

  margin-top: 12px !important;

  transform: none !important;
}

/* =========================================================
   MODALES · TAMAÑO CORRECTO Y SOBRE EL LAYOUT
   ========================================================= */

.motos-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;

  z-index: 100000 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100vw !important;
  height: 100dvh !important;

  margin: 0 !important;

  padding:
    18px !important;

  background:
    rgba(
      0,
      0,
      0,
      0.76
    ) !important;

  overflow: hidden !important;

  isolation: isolate !important;
}

.motos-modal {
  display: grid !important;

  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto !important;

  width:
    min(
      1180px,
      calc(100vw - 36px)
    ) !important;

  height:
    min(
      860px,
      calc(100dvh - 36px)
    ) !important;

  max-height:
    calc(
      100dvh -
      36px
    ) !important;

  min-width: 0 !important;
  min-height: 0 !important;

  border-radius:
    16px !important;

  overflow: hidden !important;
}

.motos-modal--detail {
  width:
    min(
      1280px,
      calc(100vw - 36px)
    ) !important;
}

.motos-modal--import {
  width:
    min(
      1160px,
      calc(100vw - 36px)
    ) !important;
}

.motos-modal__header {
  min-height: 72px !important;

  padding:
    13px
    15px !important;
}

.motos-modal__header h3 {
  font-size: 19px !important;
  font-weight: 950 !important;
}

.motos-modal__header p {
  font-size: 10.5px !important;
}

.motos-modal__close {
  width: 36px !important;
  height: 36px !important;

  min-width: 36px !important;
  min-height: 36px !important;

  flex:
    0
    0
    36px !important;
}

.motos-modal__body {
  min-height: 0 !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.motos-modal__footer {
  min-height: 64px !important;

  padding:
    12px
    15px !important;
}

/* =========================================================
   MODO OSCURO · CUADRÍCULA
   ========================================================= */

html[data-theme="dark"] .motos-table,
body.dark .motos-table,
.dark .motos-table {
  border-color:
    rgba(
      255,
      255,
      255,
      0.18
    ) !important;
}

html[data-theme="dark"] .motos-table th,
html[data-theme="dark"] .motos-table td,
body.dark .motos-table th,
body.dark .motos-table td,
.dark .motos-table th,
.dark .motos-table td {
  border-right-color:
    rgba(
      255,
      255,
      255,
      0.12
    ) !important;

  border-bottom-color:
    rgba(
      255,
      255,
      255,
      0.12
    ) !important;
}

html[data-theme="dark"]
.motos-table
tbody
tr:nth-child(even)
td,
body.dark
.motos-table
tbody
tr:nth-child(even)
td,
.dark
.motos-table
tbody
tr:nth-child(even)
td {
  background:
    #0a0a0a !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1450px) {
  .motos-toolbar {
    grid-template-columns:
      1fr !important;
  }

  .motos-filter-grid {
    grid-template-columns:
      repeat(
        5,
        minmax(100px, 1fr)
      ) !important;
  }
}

@media (max-width: 1100px) {
  .motos-filter-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      ) !important;
  }
}

@media (max-width: 760px) {
  .motos-head {
    grid-template-columns:
      1fr !important;

    min-height: 0 !important;

    padding:
      12px !important;
  }

  .motos-head__actions {
    justify-content:
      flex-start !important;
  }

  .motos-brand h2 {
    font-size:
      22px !important;
  }

  .motos-brand p {
    font-size:
      11px !important;
  }

  .motos-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .motos-filter-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .motos-modal-backdrop {
    padding:
      8px !important;
  }

  .motos-modal,
  .motos-modal--form,
  .motos-modal--detail,
  .motos-modal--import {
    width:
      calc(
        100vw -
        16px
      ) !important;

    height:
      calc(
        100dvh -
        16px
      ) !important;

    max-height:
      calc(
        100dvh -
        16px
      ) !important;

    border-radius:
      13px !important;
  }
}

@media (max-width: 520px) {
  .motos-filter-grid,
  .motos-metrics {
    grid-template-columns:
      1fr !important;
  }

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