/* Dashboard shell refresh — mockup-aligned layout tokens */

.tu-campo-body .dashboard-shell {
  --shell-sidebar-w: 220px;
  --shell-radius: 12px;
  --shell-card-bg: #ffffff;
  --shell-card-border: rgba(7, 63, 42, 0.08);
  --shell-green: #073f2a;
  --shell-btn-radius: 10px;
  --shell-btn-pad-y: 10px;
  --shell-btn-pad-x: 16px;
  --shell-green-soft: rgba(214, 246, 174, 0.35);
  --shell-blue-soft: #f4f8fc;
  --shell-orange-soft: #fff8ef;
  --shell-orange-accent: #d9824b;
  --shell-topbar-h: 56px;
  --shell-topbar-border: rgba(7, 63, 42, 0.1);
  --shell-topbar-text: #2e2218;
  --shell-topbar-muted: #5a7268;
}

/* =============================================================================
   Shell único: sidebar | main-pane (topbar + content)
   ============================================================================= */

.tu-campo-body .dashboard-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.tu-campo-body .dashboard-main,
.tu-campo-body .dashboard-shell #main-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  margin-top: 0 !important;
  height: auto !important;
  width: 100%;
  padding-left: 0 !important;
}

.tu-campo-body .dashboard-main-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--tc-dash-bg, #f6f4f0);
}

.tu-campo-body .dashboard-topbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  flex-shrink: 0;
  height: var(--shell-topbar-h);
  z-index: 20;
}

.tu-campo-body .dashboard-sidebar {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 0 0 var(--shell-sidebar-w);
  width: var(--shell-sidebar-w);
  min-width: var(--shell-sidebar-w);
  height: auto !important;
  align-self: stretch;
  overflow-y: auto;
  z-index: 30;
}

.tu-campo-body #content.dashboard-content {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin-left: 0 !important;
  max-width: none !important;
  width: 100%;
}

.tu-campo-body .dashboard-shell.dashboard-shell--inicio #tc-content-top {
  display: none !important;
}

@media (min-width: 768px) {
  .tu-campo-body .dashboard-sidebar {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .tu-campo-body .dashboard-sidebar {
    display: none !important;
  }
}

/* Topbar — campo a la izquierda, acciones a la derecha (main pane only) */
.tu-campo-body .dashboard-topbar,
.tu-campo-body #top-bar.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 16px;
  background: #ffffff !important;
  border-bottom: 1px solid var(--shell-topbar-border) !important;
  box-shadow: none;
}

.tu-campo-body .dashboard-topbar .tc-menu-btn {
  flex-shrink: 0;
  margin-right: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--shell-topbar-border);
  background: #ffffff;
  color: var(--shell-topbar-text);
}

.tu-campo-body .dashboard-topbar .tc-menu-btn:hover,
.tu-campo-body .dashboard-topbar .tc-menu-btn:focus-visible {
  background: #f8f7f5;
  border-color: #d9d4cc;
}

.tu-campo-body .topbar-campo-slot {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 360px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tu-campo-body .topbar-campo-slot.hidden {
  display: none;
}

.tu-campo-body .topbar-campo-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--shell-topbar-border);
  background: #ffffff;
  box-sizing: border-box;
}

.tu-campo-body .topbar-campo-chip--static {
  padding-right: 34px;
  position: relative;
}

.tu-campo-body .topbar-campo-chip--static::after,
.tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border-right: 1.5px solid var(--shell-topbar-muted);
  border-bottom: 1.5px solid var(--shell-topbar-muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.tu-campo-body .topbar-campo-name {
  display: block;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--shell-topbar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0 34px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--shell-topbar-border);
  background: #ffffff;
  box-sizing: border-box;
  cursor: pointer;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-label {
  display: none;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-select {
  width: auto;
  max-width: 100%;
  min-width: 120px;
  min-height: 38px;
  margin: 0;
  padding: 8px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--shell-topbar-text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: none;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-select:focus,
.tu-campo-body .topbar-campo-slot .ctx-campo-select:focus-visible {
  outline: none;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact:focus-within {
  border-color: rgba(106, 158, 72, 0.45);
  box-shadow: 0 0 0 2px rgba(106, 158, 72, 0.12);
}

.tu-campo-body .dashboard-topbar .tc-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.tu-campo-body .dashboard-topbar .tc-top-actions .tc-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--shell-topbar-border) !important;
  background: #ffffff !important;
  color: var(--shell-topbar-text) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.tu-campo-body .dashboard-topbar .tc-top-actions .tc-header-action:hover,
.tu-campo-body .dashboard-topbar .tc-top-actions .tc-header-action:focus-visible {
  background: #f8f7f5 !important;
  border-color: #d9d4cc !important;
  color: var(--shell-topbar-text) !important;
}

.tu-campo-body .dashboard-topbar .tc-header-wa-btn--primary {
  background: #ffffff !important;
  border-color: rgba(106, 158, 72, 0.28) !important;
  color: var(--shell-topbar-text) !important;
  box-shadow: none !important;
}

.tu-campo-body .dashboard-topbar .tc-header-wa-btn--primary:hover,
.tu-campo-body .dashboard-topbar .tc-header-wa-btn--primary:focus-visible {
  background: #f6faf3 !important;
  border-color: rgba(106, 158, 72, 0.45) !important;
  color: var(--shell-topbar-text) !important;
}

.tu-campo-body .dashboard-topbar .tc-header-wa-btn--primary .tc-header-icon--wa {
  color: #25d366 !important;
}

/* Logo único: sidebar (desktop) + drawer (mobile) */
.tu-campo-body .dashboard-shell a.tc-sidebar-logo,
.tu-campo-body .dashboard-shell a.tc-drawer-logo {
  display: block;
  font-weight: 700;
  font-size: 22px;
  color: #25221d;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tu-campo-body .tc-sidebar-logo span,
.tu-campo-body .tc-drawer-logo span {
  color: #6a9e48;
}

.tu-campo-body .tc-sidebar-logo {
  display: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.tu-campo-body .tc-drawer-logo {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.tu-campo-body .tc-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.tu-campo-body .tc-topbar-logo {
  display: none !important;
}

/* Onboarding banner */
.tu-campo-body #panel-inicio .onboarding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--shell-radius);
  border: 1px solid #d5e3cb;
  background: linear-gradient(135deg, #f6faf3 0%, #eef5e9 100%);
  box-shadow: 0 1px 3px rgba(46, 34, 24, 0.04);
}

.tu-campo-body #panel-inicio .onboarding-banner-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #2e2218;
}

.tu-campo-body #panel-inicio .onboarding-banner-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #6b635a;
}

.tu-campo-body #panel-inicio .onboarding-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tu-campo-body #panel-inicio .onboarding-banner-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8a7f72;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.tu-campo-body #panel-inicio .onboarding-banner-dismiss:hover {
  background: rgba(46, 34, 24, 0.06);
  color: #2e2218;
}

/* Stat cards (alias) */
.tu-campo-body #panel-inicio .stat-card {
  background: var(--shell-card-bg);
  border: 1px solid var(--shell-card-border);
  border-radius: var(--shell-radius);
}

.tu-campo-body #panel-inicio .stat-card--rain {
  background: var(--shell-blue-soft);
  border-color: #d4e2f0;
}

.tu-campo-body #panel-inicio .stat-card--alert {
  background: var(--shell-orange-soft);
  border-color: #ead9b8;
}

.tu-campo-body #panel-inicio .stat-card--ok {
  background: var(--shell-green-soft);
  border-color: #d5e3cb;
}

/* Status pills */
.tu-campo-body #panel-inicio .status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 100px;
  background: #f3f1eb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tu-campo-body #panel-inicio .inicio-d113-tone--orden .status-pill {
  background: var(--shell-orange-soft);
  color: var(--shell-orange-accent);
}

.tu-campo-body #panel-inicio .inicio-d113-tone--recordatorio .status-pill {
  background: #fff4e5;
  color: #b45309;
}

.tu-campo-body #panel-inicio .inicio-d113-tone--incidente .status-pill {
  background: #fdecea;
  color: #b42318;
}

.tu-campo-body #panel-inicio .inicio-d113-tone--lluvia .status-pill {
  background: var(--shell-blue-soft);
  color: #3d5f82;
}

/* Inicio — grid inferior (movimientos | atención + acciones) */
.tu-campo-body #panel-inicio .inicio-d46-body,
.tu-campo-body #panel-inicio .inicio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 20px;
  align-items: start;
}

.tu-campo-body #panel-inicio .inicio-d46-col--main {
  min-width: 0;
}

.tu-campo-body #panel-inicio .inicio-d46-col--side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.tu-campo-body #panel-inicio .inicio-d46-col--side :is(
  .inicio-d113-atencion,
  .inicio-d46-atencion,
  .inicio-d113-acciones,
  .inicio-d46-acciones
) {
  width: 100%;
  min-width: 0;
  position: static;
  top: auto;
}

.tu-campo-body #panel-inicio .inicio-d46-movimientos {
  width: 100%;
  min-width: 0;
}

.tu-campo-body #panel-inicio .activity-item {
  transition: background 0.12s ease;
}

.tu-campo-body #panel-inicio .activity-item:hover {
  background: rgba(82, 160, 51, 0.04);
  border-radius: 8px;
}

@media (min-width: 768px) {
  .tu-campo-body .dashboard-sidebar {
    padding-top: 16px;
  }

  .tu-campo-body .dashboard-topbar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tu-campo-body .dashboard-shell #main-layout {
    padding-left: 0 !important;
  }

  .tu-campo-body .tc-sidebar-logo {
    display: block;
  }

  .tu-campo-body .tc-drawer-logo {
    display: none;
  }
}

@media (max-width: 767px) {
  .tu-campo-body .dashboard-topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .tu-campo-body .topbar-campo-slot {
    flex: 1 1 auto;
    max-width: none;
  }

  .tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact {
    width: 100%;
    max-width: none;
  }

  .tu-campo-body .topbar-campo-chip {
    width: 100%;
    max-width: 100%;
  }

  .tu-campo-body .dashboard-topbar .tc-top-actions {
    gap: 6px;
  }

  .tu-campo-body .dashboard-topbar .tc-top-actions .tc-header-action {
    padding: 8px 10px;
    min-width: 40px;
  }

  .tu-campo-body #panel-inicio .onboarding-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .tu-campo-body #panel-inicio .onboarding-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.tu-campo-body #panel-inicio .onboarding-banner--compact {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.tu-campo-body #panel-inicio .onboarding-banner--compact .onboarding-banner-body {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 10px;
}

.tu-campo-body #panel-inicio .onboarding-banner--compact .onboarding-banner-title,
.tu-campo-body #panel-inicio .onboarding-banner--compact .onboarding-banner-progress-meta {
  margin: 0;
}

.tu-campo-body #panel-inicio .onboarding-banner--compact .onboarding-banner-actions {
  width: auto;
  justify-content: flex-end;
}

@media (max-width: 559px) {
  .tu-campo-body #panel-inicio .onboarding-banner--compact {
    flex-wrap: wrap;
  }

  .tu-campo-body #panel-inicio .onboarding-banner--compact .onboarding-banner-body {
    flex-basis: 100%;
    justify-content: space-between;
  }

  .tu-campo-body #panel-inicio .onboarding-banner--compact .onboarding-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   Transversal surface unification — all dashboard modules
   (fondo, cards, padding; sin cambiar layout ni lógica)
   ========================================================= */

.tu-campo-body {
  --tc-dash-bg: #f6f4f0;
  --dash-surface-bg: #ffffff;
  --dash-surface-border-color: #eae6e0;
  --dash-surface-shadow: 0 1px 2px rgba(46, 34, 24, 0.03);
  --dash-content-pad-y: 24px;
  --dash-content-pad-x: 20px;
}

.tu-campo-body #panel-inicio {
  --inicio-card-bg: var(--dash-surface-bg);
  --inicio-card-border: var(--dash-surface-border-color);
  --inicio-card-shadow: var(--dash-surface-shadow);
  --inicio-radius: 12px;
}

.tu-campo-body :is(
  #panel-ordenes,
  #panel-actividad,
  #panel-historial,
  #panel-recordatorios,
  #panel-informes
) {
  --empty-card-bg: var(--dash-surface-bg);
  --empty-card-border: var(--dash-surface-border-color);
  --empty-card-shadow: var(--dash-surface-shadow);
  --empty-radius: 12px;
}

.tu-campo-body #content.dashboard-content {
  background: var(--tc-dash-bg);
  padding: var(--dash-content-pad-y) var(--dash-content-pad-x)
    calc(88px + env(safe-area-inset-bottom, 0));
}

@media (min-width: 768px) {
  .tu-campo-body {
    --dash-content-pad-y: 28px;
    --dash-content-pad-x: 32px;
  }

  .tu-campo-body #content.dashboard-content {
    padding: var(--dash-content-pad-y) var(--dash-content-pad-x) 36px;
  }
}

/* Base card surface — shared across modules */
.tu-campo-body #content :is(
  .orden-card,
  .registro-card:not(.registro-card--editing),
  .recordatorio-card,
  .informe-report,
  .informe-inicial,
  .informe-kpi,
  .activity-block,
  .timeline-item-card,
  .registro-item-card,
  .dash-section,
  .inicio-d4-section,
  .stat-card,
  .inicio-stat-card,
  .timeline-empty-card,
  .registros-empty-card,
  .recordatorios-empty-card,
  .tc-operational-empty,
  .ordenes-create-panel:not(.dash-inline-create-panel),
  .recordatorios-create-panel:not(.dash-inline-create-panel):not(.dash-inline-form-panel),
  .informes-create-panel,
  .registros-form-card,
  .mas-admin-item
) {
  background: var(--dash-surface-bg);
  border: 1px solid var(--dash-surface-border-color);
  border-radius: 12px;
  box-shadow: var(--dash-surface-shadow);
}

/* Registros: conservar acento lateral por tipo */
.tu-campo-body #content .registro-card:not(.registro-card--editing) {
  border-left-width: 3px;
}

.tu-campo-body #content .registro-card--read {
  background: var(--dash-surface-bg);
  border-color: var(--dash-surface-border-color);
  box-shadow: var(--dash-surface-shadow);
}

/* Informes: KPIs sin gradiente distinto */
.tu-campo-body #content .informe-kpi {
  background: var(--dash-surface-bg);
}

/* Paneles de creación: mismo fondo que el resto */
.tu-campo-body #content :is(.recordatorios-create-panel:not(.dash-inline-create-panel):not(.dash-inline-form-panel), .informes-create-panel) {
  background: var(--dash-surface-bg);
}

/* Inicio: alinear stats y secciones con tokens globales */
.tu-campo-body #content .inicio-stat-card,
.tu-campo-body #content .stat-card {
  border-color: var(--dash-surface-border-color);
  box-shadow: var(--dash-surface-shadow);
}

/* Variantes semánticas de Inicio — solo tinte de fondo, mismo borde/radio */
.tu-campo-body #content .inicio-stat-card--ok,
.tu-campo-body #content .stat-card--ok {
  background: #f3f7ef;
  border-color: #d5e3cb;
}

.tu-campo-body #content .inicio-stat-card--rain,
.tu-campo-body #content .stat-card--rain {
  background: #f4f8fc;
  border-color: #d4e2f0;
}

.tu-campo-body #content .inicio-stat-card--alert,
.tu-campo-body #content .stat-card--alert {
  background: #fffbf5;
  border-color: #f0e4cc;
}

.tu-campo-body #content .inicio-stat-card--empty,
.tu-campo-body #content .stat-card--empty {
  background: var(--dash-surface-bg);
}

/* =============================================================================
   dash-module-list — listas/cards unificadas (Registros, Órdenes, Recordatorios, Informes)
   ============================================================================= */

.tu-campo-body :is(#panel-historial, #panel-ordenes, #panel-recordatorios, #panel-informes, #panel-equipo) {
  --dash-module-bg: #ffffff;
  --dash-module-head-bg: #faf9f7;
  --dash-module-divider: rgba(60, 40, 20, 0.07);
  --dash-module-hover: #faf9f7;
  --dash-module-col-gap: 12px;
  --dash-module-row-pad-y: 11px;
  --dash-module-row-pad-x: 14px;
  --dash-module-title-size: 15px;
  --dash-module-meta-size: 13px;
  --dash-module-meta-color: #7a7268;
  --dash-module-title-color: #2e2218;
  --dash-module-col-main: minmax(0, 1.4fr);
  --dash-module-col-meta: minmax(0, 1fr);
  --dash-module-col-estado: minmax(132px, 168px);
  --dash-module-col-fecha: minmax(120px, 168px);
  --dash-module-col-actions: minmax(44px, 52px);
  --dash-module-cols-3: var(--dash-module-col-main) var(--dash-module-col-meta)
    var(--dash-module-col-actions);
  --dash-module-cols-4: var(--dash-module-col-main) var(--dash-module-col-fecha)
    var(--dash-module-col-estado) var(--dash-module-col-actions);
  /* Órdenes: Tarea | Estado | Fecha | Campo | Responsable | Acciones */
  --dash-module-cols-ordenes:
    minmax(120px, 1.25fr)
    var(--dash-module-col-estado)
    minmax(100px, 130px)
    minmax(120px, 1fr)
    minmax(88px, 120px)
    var(--dash-module-col-actions);
  /* Recordatorios: Recordatorio | Fecha | Estado | Acciones */
  --dash-module-cols-recordatorios: var(--dash-module-cols-4);
}

/* Contenedor blanco */
.tu-campo-body #content .dash-module-list {
  background: var(--dash-module-bg);
  border: 1px solid var(--dash-surface-border-color);
  border-radius: 12px;
  box-shadow: var(--dash-surface-shadow);
  overflow: hidden;
}

/* Listas con menú •••: el panel absolute no debe quedar clippeado */
.tu-campo-body #content .dash-module-list.recordatorios-table,
.tu-campo-body #content .dash-module-list.ordenes-table,
.tu-campo-body #content .dash-module-list.registros-module-list,
.tu-campo-body #content .dash-module-list.informe-report,
.tu-campo-body #content .dash-module-list.informe-inicial {
  overflow: visible;
}

/* Encabezado suave */
.tu-campo-body #content .dash-module-list-head {
  display: grid;
  gap: 10px var(--dash-module-col-gap);
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--dash-module-divider);
  background: var(--dash-module-head-bg);
  color: #6b5d4f;
}

.tu-campo-body #content .dash-module-col {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.82;
  min-width: 0;
}

.tu-campo-body #content .dash-module-col--estado {
  text-align: left;
  justify-self: start;
}

.tu-campo-body #content .dash-module-col--actions {
  text-align: right;
  justify-self: end;
}

.tu-campo-body #content .registros-table-head {
  grid-template-columns: var(--dash-module-cols-3);
}

.tu-campo-body #content .recordatorios-table-row,
.tu-campo-body #content .recordatorios-table-head {
  display: grid;
  grid-template-columns: var(--dash-module-cols-recordatorios);
  gap: 4px var(--dash-module-col-gap);
  align-items: center;
}

.tu-campo-body #content .dash-module-col--fecha {
  text-align: left;
  justify-self: start;
}

/* Tipografía unificada en filas de tabla */
.tu-campo-body #content .dash-module-list :is(
  .orden-item-titulo,
  .orden-card-tarea,
  .recordatorio-item-titulo,
  .registro-item-titulo
) {
  margin: 0;
  font-size: var(--dash-module-title-size);
  font-weight: 500 !important;
  line-height: 1.3;
  color: var(--dash-module-title-color);
}

/* Acciones de tabla: siempre solo el menú ••• alineado a la derecha */
.tu-campo-body #content .dash-module-list :is(
  .orden-item-actions,
  .recordatorio-item-actions,
  .registro-item-actions
) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  border-top: 0;
  min-width: 0;
}

.tu-campo-body #content .dash-module-list .dash-action-menu-trigger {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
  background: #fff;
  color: #5a7268;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.tu-campo-body #content .dash-module-list :is(
  .orden-card-meta,
  .orden-card-context,
  .orden-card-responsable,
  .recordatorio-item-meta,
  .registro-item-meta
) {
  margin: 0;
  min-width: 0;
  font-size: var(--dash-module-meta-size);
  font-weight: 500;
  line-height: 1.35;
  color: var(--dash-module-meta-color);
}

.tu-campo-body #content .dash-module-list :is(
  .orden-item-estado,
  .orden-unified-status,
  .recordatorio-item-estado
) {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Cuerpo de lista */
.tu-campo-body #content .dash-module-list-body {
  display: flex;
  flex-direction: column;
}

.tu-campo-body #content .dash-module-list > :not(.dash-module-list-head):not(.dash-module-list-body) + :not(.dash-module-list-head) {
  border-top: 1px solid var(--dash-module-divider);
}

/* Pills de estado compartidas */
.tu-campo-body #content .dash-module-list .recordatorio-row-pill,
.tu-campo-body #content .dash-module-list .registro-item-type,
.tu-campo-body #content .dash-module-list .tc-estado-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tu-campo-body #content .dash-module-list .registro-item-type {
  margin: 4px 0 0;
  width: fit-content;
  background: #f0ebe4;
  color: #5c5349;
}

.tu-campo-body #content .dash-module-list .registro-item-card--labor .registro-item-type {
  background: #edf2e6;
  color: #3f5f28;
}

.tu-campo-body #content .dash-module-list .registro-item-card--lluvia .registro-item-type {
  background: #e8f2f8;
  color: #2d5a78;
}

.tu-campo-body #content .dash-module-list .registro-item-card--nota .registro-item-type {
  background: #f3f0ec;
  color: #5c5349;
}

.tu-campo-body #content .dash-module-list .registro-item-card--ganadero .registro-item-type {
  background: #f3ede8;
  color: #5c4a3a;
}

/* --- Registros --- */
.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-left-width: 0;
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-card + .registro-card,
.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registros-day-group + .registro-card,
.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-card + .registros-day-group {
  border-top: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registros-day-group {
  padding: 8px 14px 4px;
  background: var(--dash-module-head-bg);
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-card {
  display: grid;
  grid-template-columns: var(--dash-module-cols-3);
  gap: 4px var(--dash-module-col-gap);
  align-items: center;
  padding: var(--dash-module-row-pad-y) var(--dash-module-row-pad-x);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-card:hover {
  background: var(--dash-module-hover);
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-head {
  grid-column: 1;
  min-width: 0;
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-meta {
  grid-column: 2;
  margin: 0;
  min-width: 0;
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
  align-self: center;
}

.tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-ganadero-wa-hint {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

/* --- Recordatorios --- */
.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table {
  min-width: 0;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorios-table-head {
  background: var(--dash-module-head-bg);
  color: #6b5d4f;
  border-bottom-color: var(--dash-module-divider);
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card--read,
.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card--editing {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
  overflow: visible;
  position: relative;
}

/* La fila (article) no debe caparse a 980px como las tarjetas legacy:
   el encabezado ocupa el ancho completo, así que las columnas fijas
   quedaban corridas respecto de las filas. */
.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card--read::before,
.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card--editing::before {
  display: none;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card.is-action-menu-open,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-card.is-action-menu-open,
.tu-campo-body #panel-historial .dash-module-list .registro-card.is-action-menu-open {
  z-index: 60;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card--read + .recordatorio-card--read,
.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card--read + .recordatorio-card--editing,
.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-card--editing + .recordatorio-card--read {
  border-top: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-card {
  padding: var(--dash-module-row-pad-y) var(--dash-module-row-pad-x);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-card:hover {
  background: var(--dash-module-hover);
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-head {
  grid-column: 1;
  min-width: 0;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-col--fecha,
.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-meta {
  grid-column: 2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-estado {
  grid-column: 3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-actions {
  grid-column: 4;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  border-top: 0;
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-edit {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--dash-module-divider);
  background: var(--dash-module-head-bg);
}

/* Paneles inline de creación — componente compartido */
.tu-campo-body #content .dash-inline-create-panel,
.tu-campo-body #content .dash-inline-form-panel {
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--dash-surface-border-color);
  border-radius: 12px;
  background: var(--dash-module-bg);
  box-shadow: none;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.tu-campo-body #content .dash-inline-create-header,
.tu-campo-body #content .dash-inline-form-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}

.tu-campo-body #content .dash-inline-create-title,
.tu-campo-body #content .dash-inline-form-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #2e2218;
}

.tu-campo-body #content .dash-inline-create-subtitle,
.tu-campo-body #content .dash-inline-form-panel-lead {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #7a7268;
}

.tu-campo-body #content .dash-inline-create-close,
.tu-campo-body #content .btn-recordatorios-cerrar-panel,
.tu-campo-body #content .btn-registros-cerrar-panel,
.tu-campo-body #content .btn-ordenes-cerrar-panel,
.tu-campo-body #content .btn-informes-cerrar-panel,
.tu-campo-body #content .btn-equipo-cerrar-panel {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #6b5d4f !important;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: auto;
}

.tu-campo-body #content .dash-inline-create-body,
.tu-campo-body #content .recordatorios-create-form {
  padding: 12px 14px 14px;
}

.tu-campo-body #content .dash-inline-create-grid {
  display: grid;
  gap: 10px;
}

.tu-campo-body #content .dash-inline-create-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  justify-content: flex-start;
  margin-top: 10px;
}

.tu-campo-body #content .dash-inline-create-panel--saved,
.tu-campo-body #content .ordenes-form-card--saved {
  background: #f6faf3;
}

.tu-campo-body #content .dash-inline-create-panel--error,
.tu-campo-body #content .ordenes-form-card--error {
  background: #fff8f6;
}

.tu-campo-body #content :is(
  #panel-ordenes,
  #panel-historial,
  #panel-recordatorios,
  #panel-informes,
  #panel-equipo
) :is(
  .ordenes-section--crear,
  .registros-section--crear,
  .recordatorios-section--crear,
  .informes-section--crear,
  .equipo-section--invitar
) {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.tu-campo-body #panel-recordatorios .recordatorio-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .tu-campo-body #panel-recordatorios .recordatorio-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .tu-campo-body #panel-equipo .equipo-add-form.dash-inline-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tu-campo-body #panel-equipo .equipo-add-form .ordenes-form-field--wide {
    grid-column: 1 / -1;
  }
}

.tu-campo-body #panel-recordatorios .recordatorio-form-field--wide {
  margin-bottom: 10px;
}

.tu-campo-body #panel-recordatorios .recordatorio-form-actions {
  justify-content: flex-start;
  margin-top: 0;
}

/* Registros — panel inline de creación */
.tu-campo-body #panel-historial .dash-inline-create-panel .registros-composer-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tu-campo-body #panel-historial .dash-inline-create-panel .registros-composer-main .registros-composer-input {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
}

.tu-campo-body #panel-historial .dash-inline-create-panel .registros-liquidacion-row[hidden],
.tu-campo-body #panel-historial .dash-inline-create-panel .registros-liquidacion-row.hidden,
.tu-campo-body #panel-historial .dash-inline-create-panel .registros-composer-main[hidden],
.tu-campo-body #panel-historial .dash-inline-create-panel .registros-composer-main.hidden {
  display: none !important;
}

.tu-campo-body #panel-historial .dash-inline-create-panel .registros-composer-note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #7a7268;
}

.tu-campo-body #panel-historial .dash-inline-create-panel .dash-inline-create-actions {
  margin-top: 10px;
}

.tu-campo-body #panel-ordenes .ordenes-form-row--triple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .tu-campo-body #panel-ordenes .ordenes-form-row--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tu-campo-body #panel-equipo .equipo-panel {
  max-width: none;
}

.tu-campo-body #panel-equipo .equipo-panel-head {
  margin: 0 0 12px;
}

.tu-campo-body #panel-equipo .equipo-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #2e2218;
}

.tu-campo-body #panel-equipo .equipo-panel-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.tu-campo-body #panel-equipo .dash-module-list.equipo-table-module {
  min-width: 0;
}

.tu-campo-body #panel-equipo .dash-module-list.equipo-table-module .equipo-table thead th {
  background: var(--dash-module-head-bg);
}

.tu-campo-body #panel-equipo .equipo-invite-panel.dash-inline-create-panel {
  background: #ffffff;
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
  border-radius: 12px;
  box-shadow: none;
}

/* --- Órdenes: tabla unificada --- */
.tu-campo-body #content .ordenes-table-row,
.tu-campo-body #content .ordenes-table-head {
  display: grid;
  grid-template-columns: var(--dash-module-cols-ordenes);
  gap: 4px var(--dash-module-col-gap);
  align-items: center;
}

.tu-campo-body #panel-ordenes .ordenes-table-head .dash-module-col--tarea {
  grid-column: 1;
}

.tu-campo-body #panel-ordenes .ordenes-table-head .dash-module-col--estado {
  grid-column: 2;
}

.tu-campo-body #panel-ordenes .ordenes-table-head .dash-module-col--fecha {
  grid-column: 3;
}

.tu-campo-body #panel-ordenes .ordenes-table-head .dash-module-col--campo {
  grid-column: 4;
}

.tu-campo-body #panel-ordenes .ordenes-table-head .dash-module-col--resp {
  grid-column: 5;
}

.tu-campo-body #panel-ordenes .ordenes-table-head .dash-module-col--actions {
  grid-column: 6;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table {
  min-width: 0;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .ordenes-table-head {
  background: var(--dash-module-head-bg);
  color: #6b5d4f;
  border-bottom-color: var(--dash-module-divider);
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .ordenes-table-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
  overflow: visible;
  position: relative;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .ordenes-table-card + .ordenes-table-card {
  border-top: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-card,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-unified-view.ordenes-table-row {
  display: grid;
  grid-template-columns: var(--dash-module-cols-ordenes);
  gap: 4px var(--dash-module-col-gap);
  align-items: center;
  padding: var(--dash-module-row-pad-y) var(--dash-module-row-pad-x);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  flex-direction: unset;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-card:hover {
  background: var(--dash-module-hover);
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-row-error {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  order: unset;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-head,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--tarea {
  grid-column: 1;
  min-width: 0;
  order: unset;
  width: auto;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-unified-status,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-estado {
  grid-column: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  order: unset;
  width: auto;
  overflow: hidden;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--fecha,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-card-meta {
  grid-column: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  order: unset;
  opacity: 1;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--campo,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-card-context {
  grid-column: 4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  order: unset;
  opacity: 1;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--resp,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-card-responsable {
  grid-column: 5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  order: unset;
  opacity: 1;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions .orden-card-actions {
  grid-column: 6;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
  width: auto;
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
  order: unset;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions-inner,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions .orden-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  border-top: 0;
  width: auto;
  max-width: 100%;
}

.tu-campo-body #panel-ordenes .orden-card-actions--hierarchy {
  gap: 4px 6px;
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.tu-campo-body #panel-ordenes .orden-card-actions--hierarchy .btn-ord-hecha {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.2;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.tu-campo-body #panel-ordenes .orden-card-actions--hierarchy .btn-ord-progreso {
  min-height: 32px;
  padding: 4px 6px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-pend-edit {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--dash-module-divider);
  background: var(--dash-module-head-bg);
  margin: 0;
}

.tu-campo-body #panel-ordenes .ordenes-table-empty {
  margin: 0;
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #8a8070;
}

@media (max-width: 1100px) {
  .tu-campo-body :is(#panel-historial, #panel-ordenes, #panel-recordatorios, #panel-informes, #panel-equipo) {
    --dash-module-col-estado: minmax(120px, 148px);
    --dash-module-col-actions: minmax(44px, 52px);
    --dash-module-cols-ordenes:
      minmax(110px, 1.15fr)
      var(--dash-module-col-estado)
      minmax(88px, 118px)
      minmax(100px, 1fr)
      minmax(72px, 100px)
      var(--dash-module-col-actions);
  }
}

@media (max-width: 820px) {
  .tu-campo-body #content .ordenes-table-head {
    display: none;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-card,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-unified-view.ordenes-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-head,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--tarea,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-unified-status,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-estado,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--fecha,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-card-meta,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--campo,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-card-context,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--resp,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-card-responsable,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions {
    grid-column: 1;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions .orden-card-actions {
    justify-content: flex-start;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--dash-module-divider);
    width: 100%;
  }
}

/* --- Órdenes: por enviar (legacy) --- */
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-row {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-row + .orden-pend-row {
  border-top: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-view {
  display: grid;
  grid-template-columns: var(--dash-module-cols-3);
  gap: 8px var(--dash-module-col-gap);
  align-items: center;
  padding: 11px 14px;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-row:hover {
  background: var(--dash-module-hover);
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-row-error {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-main {
  grid-column: 1 / span 2;
  min-width: 0;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-actions {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 10px;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-edit {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--dash-module-divider);
}

/* --- Órdenes: seguimiento / completadas --- */
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list .orden-card {
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list .orden-card + .orden-card {
  border-top: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list .orden-card:hover {
  background: var(--dash-module-hover);
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-thread-top,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-card-meta,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-timeline,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-card-evidencia,
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-card-alerta {
  grid-column: 1;
}

.tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-card-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  padding: 0;
  border-top: 0;
  justify-content: flex-end;
}

.tu-campo-body #panel-ordenes .ordenes-timeline--d1 {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.tu-campo-body #panel-ordenes .ordenes-timeline--d1 .ordenes-section--seguimiento {
  position: static !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.tu-campo-body #panel-ordenes .ordenes-timeline--d1 .ordenes-section-body,
.tu-campo-body #panel-ordenes .ordenes-timeline--d1 .ordenes-cards-list--seguimiento,
.tu-campo-body #panel-ordenes .ordenes-timeline--d1 .ordenes-pend-list {
  width: 100% !important;
  max-width: none !important;
}

.tu-campo-body #panel-ordenes .ordenes-section--seguimiento .tc-operational-empty,
.tu-campo-body #panel-ordenes .ordenes-section--pendientes .tc-operational-empty {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 1px solid var(--dash-surface-border-color) !important;
  border-radius: 12px !important;
  background: var(--dash-module-bg) !important;
  box-shadow: var(--dash-surface-shadow) !important;
  box-sizing: border-box !important;
}

/* Órdenes unificadas: restaurar fila alineada (anula timeline plano) */
.tu-campo-body #panel-ordenes .dash-module-list.ordenes-unified-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row {
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row::before {
  display: none;
}

.tu-campo-body #panel-ordenes .ordenes-loading-placeholder {
  min-height: 320px;
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row + .orden-unified-row {
  border-top: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row:hover {
  background: var(--dash-module-hover);
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-view,
.tu-campo-body #panel-ordenes .dash-module-list .orden-pend-view.orden-unified-view {
  display: grid !important;
  grid-template-columns: var(--dash-module-col-estado) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-status {
  order: 0;
  margin: 0;
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-main {
  order: 0;
  width: auto;
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row .orden-card-actions {
  order: 0;
  width: auto;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row .orden-card-responsable,
.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row .orden-card-context,
.tu-campo-body #panel-ordenes .dash-module-list .orden-unified-row .orden-card-meta {
  opacity: 1;
}

/* --- Informes --- */
.tu-campo-body #panel-informes .informes-create-panel.dash-inline-create-panel {
  width: 100%;
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
}

.tu-campo-body #panel-informes .informes-create-panel .informe-form {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tu-campo-body #panel-informes .informes-create-panel .period-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 767px) {
  .tu-campo-body #panel-informes .informes-create-panel .period-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tu-campo-body #panel-informes .dash-module-list.informe-inicial .informe-inicial-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--dash-module-divider);
  background: var(--dash-module-head-bg);
}

.tu-campo-body #panel-informes .dash-module-list.informe-report .informe-report-header {
  margin-bottom: 0;
  padding: 16px 18px 14px;
  background: var(--dash-module-head-bg);
  border-bottom: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-informes .dash-module-list.informe-table-wrap {
  padding: 0;
  overflow: hidden;
}

.tu-campo-body #panel-informes .dash-module-list .informe-table {
  width: 100%;
  border-collapse: collapse;
}

.tu-campo-body #panel-informes .dash-module-list .informe-table thead th {
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  color: #6b5d4f;
  background: var(--dash-module-head-bg);
  border-bottom: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-informes .dash-module-list .informe-table tbody td {
  padding: 10px 14px;
  font-size: 14px;
  border-top: 1px solid var(--dash-module-divider);
  vertical-align: top;
}

.tu-campo-body #panel-informes .dash-module-list .informe-table tbody tr:hover td {
  background: var(--dash-module-hover);
}

.tu-campo-body #panel-informes .dash-module-list.informe-report .informe-kpi-grid {
  padding: 16px 18px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--dash-module-divider);
}

.tu-campo-body #panel-informes .dash-module-list.informe-report .informe-kpi {
  background: var(--dash-module-bg);
  border-color: var(--dash-surface-border-color);
  box-shadow: none;
}

.tu-campo-body #panel-informes .dash-module-list.informe-report .informe-section {
  padding: 0 18px 18px;
}

.tu-campo-body #panel-informes .dash-module-list.informe-report .informe-section-title {
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5d4f;
}

/* Mobile: apilar filas manteniendo acciones visibles */
@media (max-width: 767px) {
  .tu-campo-body #content .dash-module-list-head {
    display: none;
  }

  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head actions"
      "meta actions"
      "hint hint";
  }

  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-head {
    grid-area: head;
  }

  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-meta {
    grid-area: meta;
  }

  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-actions {
    grid-area: actions;
    grid-row: auto;
    align-self: start;
  }

  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-ganadero-wa-hint {
    grid-area: hint;
  }

  .tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head actions"
      "fecha actions"
      "estado actions";
    gap: 6px 12px;
    align-items: start;
  }

  .tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-head {
    grid-area: head;
  }

  .tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-col--fecha,
  .tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-meta {
    grid-area: fecha;
    white-space: normal;
  }

  .tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-estado {
    grid-area: estado;
    justify-content: flex-start;
  }

  .tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table .recordatorio-item-actions {
    grid-area: actions;
    grid-row: auto;
    align-self: start;
    justify-content: flex-end;
    white-space: normal;
    flex-wrap: wrap;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-view {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-pend-list .orden-pend-main {
    grid-column: 1;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-cards-list--seguimiento .orden-card-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--dash-module-divider);
  }

  .tu-campo-body #panel-recordatorios .dash-module-list.recordatorios-table {
    min-width: 0;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head actions"
      "prog actions"
      "estado actions";
    gap: 6px 12px;
    align-items: start;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-head {
    grid-area: head;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-col--prog,
  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-meta {
    grid-area: prog;
    white-space: normal;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-estado {
    grid-area: estado;
    justify-content: flex-start;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table .orden-item-actions {
    grid-area: actions;
    grid-row: auto;
    align-self: start;
    justify-content: flex-end;
    white-space: normal;
    flex-wrap: wrap;
  }

  .tu-campo-body #panel-ordenes .dash-module-list.ordenes-table {
    min-width: 0;
  }
}

/* =============================================================================
   CTAs unificados — verde #6A9E48, mismo radio y padding
   ============================================================================= */

.tu-campo-body .dashboard-shell :is(
  .btn-primary,
  a.btn-primary,
  .onboarding-banner-cta
) {
  background: var(--shell-green) !important;
  border: 1px solid var(--shell-green) !important;
  color: #ffffff !important;
  border-radius: var(--shell-btn-radius) !important;
  padding: var(--shell-btn-pad-y) var(--shell-btn-pad-x) !important;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(106, 158, 72, 0.22);
}

.tu-campo-body .dashboard-shell :is(
  .btn-primary,
  a.btn-primary,
  .onboarding-banner-cta
):hover,
.tu-campo-body .dashboard-shell :is(
  .btn-primary,
  a.btn-primary,
  .onboarding-banner-cta
):focus-visible {
  background: #567347 !important;
  border-color: #567347 !important;
  color: #ffffff !important;
}

/* Toolbar "Cerrar" — gris sutil cuando el panel de creación está abierto */
.tu-campo-body .dashboard-shell #content .dash-page-toolbar :is(
  .dash-primary-action,
  .dash-toolbar-action,
  .btn-primary
)[aria-expanded="true"] {
  background: #f4f4f3 !important;
  border: 1px solid #e5e0d8 !important;
  color: #6f6a60 !important;
  box-shadow: none !important;
}

/* Toolbar sin campo duplicado: buscador ancho (con filtros o con CTA) */
.tu-campo-body .dashboard-shell #content .dash-page-toolbar--stacked.dash-page-toolbar--no-campo:not(.dash-page-toolbar--no-filters) .dash-toolbar-search-row,
.tu-campo-body .dashboard-shell #content .dash-page-toolbar--stacked.dash-page-toolbar--no-campo.dash-page-toolbar--cta-inline .dash-toolbar-search-row {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  order: 2;
  margin-left: 0;
}

.tu-campo-body .dashboard-shell #content .dash-page-toolbar--stacked.dash-page-toolbar--no-campo .dash-toolbar-primary-action--inline {
  margin-left: auto;
  flex-shrink: 0;
}

.tu-campo-body .dashboard-shell #content .dash-page-toolbar :is(
  .dash-primary-action,
  .dash-toolbar-action,
  .btn-primary
)[aria-expanded="true"]:hover,
.tu-campo-body .dashboard-shell #content .dash-page-toolbar :is(
  .dash-primary-action,
  .dash-toolbar-action,
  .btn-primary
)[aria-expanded="true"]:focus-visible {
  background: #eceae6 !important;
  border-color: #d9d4cc !important;
  color: #25221d !important;
  box-shadow: none !important;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones,
.tu-campo-body #panel-inicio .quick-actions.inicio-d113-acciones {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 0 !important;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-grid,
.tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-items: stretch !important;
  align-items: stretch !important;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-grid > .inicio-d113-accion-btn,
.tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-row > .btn.inicio-d113-accion-btn,
.tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-row > a.btn.inicio-d113-accion-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 92px !important;
  padding: 10px !important;
  margin: 0 !important;
  border-radius: var(--shell-btn-radius);
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  border: 1px solid var(--shell-card-border);
  background: var(--shell-card-bg);
  box-sizing: border-box !important;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-accion-label {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  line-height: 1.2 !important;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-accion-icon {
  display: block !important;
  flex-shrink: 0 !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.tu-campo-body #panel-inicio .inicio-d113-accion-btn--informes {
  background: #f4f6fa;
  border-color: #d4dbe8;
  color: #25221d;
}

.tu-campo-body #panel-inicio .inicio-d113-accion-btn--informes:hover {
  background: #eef1f7;
  border-color: #bcc8da;
  color: #25221d;
}

@media (max-width: 1024px) {
  .tu-campo-body #panel-inicio .inicio-d46-body,
  .tu-campo-body #panel-inicio .inicio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 899px) {
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-grid,
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 639px) {
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-grid,
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 559px) {
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-grid,
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-row {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================================================
   Filas de actividad — separador fino, íconos por tipo, alineación
   ============================================================================= */

.tu-campo-body #panel-inicio .inicio-d4-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tu-campo-body #panel-inicio .inicio-d113-movimiento,
.tu-campo-body #panel-inicio .inicio-d113-atencion-item {
  border-top: 0.5px solid rgba(46, 34, 24, 0.14);
  padding: 12px 0;
  margin: 0;
}

.tu-campo-body #panel-inicio .inicio-d113-movimiento:first-child,
.tu-campo-body #panel-inicio .inicio-d113-atencion-item:first-child {
  border-top: none;
  padding-top: 0;
}

.tu-campo-body #panel-inicio .inicio-d113-item-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.tu-campo-body #panel-inicio .inicio-d113-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  background: #f3f1eb;
  color: #5c5349;
}

.tu-campo-body #panel-inicio .inicio-d113-item-text {
  flex: 1;
  min-width: 0;
}

.tu-campo-body #panel-inicio .inicio-d113-tone--lluvia .inicio-d113-item-icon {
  background: var(--shell-blue-soft);
  color: #3d6f96;
}

.tu-campo-body #panel-inicio .inicio-d113-tone--pulverizacion .inicio-d113-item-icon {
  background: var(--shell-green-soft);
  color: var(--shell-green);
}

.tu-campo-body #panel-inicio .inicio-d113-tone--orden .inicio-d113-item-icon {
  background: var(--shell-orange-soft);
  color: var(--shell-orange-accent);
}

.tu-campo-body #panel-inicio .inicio-d113-tone--recordatorio .inicio-d113-item-icon {
  background: #fff4e5;
  color: #b45309;
}

.tu-campo-body #panel-inicio .inicio-d113-tone--incidente .inicio-d113-item-icon {
  background: #fdecea;
  color: #b42318;
}

.tu-campo-body #panel-inicio .inicio-d113-tone--registro .inicio-d113-item-icon {
  background: #f3f7ef;
  color: #567347;
}

/* =============================================================================
   Onboarding banner — Campo → Lotes → Registro → Equipo (PRO para Free)
   ============================================================================= */

.tu-campo-body #panel-inicio .onboarding-banner-body {
  flex: 1 1 280px;
  min-width: 0;
}

.tu-campo-body #panel-inicio .onboarding-banner-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.tu-campo-body #panel-inicio .onboarding-banner-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b635a;
}

.tu-campo-body #panel-inicio .onboarding-banner-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.tu-campo-body #panel-inicio .onboarding-banner-step-btn:hover {
  background: rgba(86, 115, 71, 0.08);
}

.tu-campo-body #panel-inicio .onboarding-banner-step-btn:focus-visible {
  outline: 2px solid var(--shell-green, #567347);
  outline-offset: 2px;
}

.tu-campo-body #panel-inicio .onboarding-banner-step.is-done {
  color: #567347;
}

.tu-campo-body #panel-inicio .onboarding-banner-step.is-pro-locked {
  color: #9a948c;
}

.tu-campo-body #panel-inicio .onboarding-banner-step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ece8e2;
  color: #6b635a;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.tu-campo-body #panel-inicio .onboarding-banner-step.is-done .onboarding-banner-step-mark {
  background: var(--shell-green-soft);
  color: var(--shell-green);
}

.tu-campo-body #panel-inicio .onboarding-banner-step.is-pro-locked .onboarding-banner-step-mark {
  background: #ece8e2;
  color: #b5aea4;
}

.tu-campo-body #panel-inicio .onboarding-banner-step-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.25;
}

.tu-campo-body #panel-inicio .onboarding-banner-step-label .tc-pro-badge {
  margin-left: 2px;
  font-size: 10px;
  padding: 1px 6px;
  vertical-align: middle;
}

.tu-campo-body #panel-inicio .onboarding-banner-step-arrow {
  margin: 0 2px;
  color: #b5aea4;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .tu-campo-body #panel-inicio .onboarding-banner {
    align-items: flex-start;
  }

  .tu-campo-body #panel-inicio .onboarding-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .tu-campo-body #panel-inicio .onboarding-banner-steps {
    gap: 6px 4px;
  }

  .tu-campo-body #panel-inicio .inicio-side-slot--condiciones {
    margin-bottom: 10px;
  }

  .tu-campo-body #panel-inicio .inicio-condiciones-card {
    padding: 12px;
  }

  .tu-campo-body #condiciones-modal .inicio-condiciones-detail-actions {
    flex-direction: column;
  }

  .tu-campo-body #condiciones-modal .inicio-condiciones-detail-actions .btn {
    width: 100%;
  }
}

/* Dashboard New User UX R1 — próximo paso + pasos secundarios */
.tu-campo-body #panel-inicio .onboarding-banner-next {
  margin: 10px 0 8px;
}

.tu-campo-body #panel-inicio .onboarding-banner-next-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a8f4e;
}

.tu-campo-body #panel-inicio .onboarding-banner-next-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #2e2218;
}

.tu-campo-body #panel-inicio .onboarding-banner-next--compact {
  margin: 4px 0 0;
}

.tu-campo-body #panel-inicio .onboarding-banner-next--compact .onboarding-banner-next-title {
  font-size: 14px;
  font-weight: 600;
}

.tu-campo-body #panel-inicio .onboarding-banner-steps--secondary .onboarding-banner-step.is-secondary {
  opacity: 0.72;
}

.tu-campo-body #panel-inicio .onboarding-banner-steps--secondary .onboarding-banner-step.is-next {
  opacity: 1;
}

.tu-campo-body #panel-inicio .onboarding-banner-steps--secondary .onboarding-banner-step.is-next .onboarding-banner-step-label {
  font-weight: 700;
  color: #2e2218;
}

.tu-campo-body #panel-inicio .inicio-stat-card--empty-copy {
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: 12px 14px;
}

.tu-campo-body #panel-inicio .inicio-stat-value--empty-copy {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35;
  color: #5c554c !important;
  white-space: normal;
}

.tu-campo-body #panel-inicio .inicio-stat-card--empty-copy .inicio-stat-label {
  font-size: 12px;
  color: #8a8278;
}

.tu-campo-body #panel-inicio .inicio-stat-action {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #3b6d11;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones--compact .inicio-d4-section-title {
  margin-bottom: 8px;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones--compact .inicio-d113-acciones-grid,
.tu-campo-body #panel-inicio .inicio-d113-acciones--compact .inicio-d113-acciones-row {
  gap: 8px;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones--compact .inicio-d113-accion-btn {
  min-height: 72px;
  padding: 8px;
  gap: 4px;
  font-size: 12px;
}

.tu-campo-body #panel-inicio .inicio-d113-acciones--compact .inicio-d113-accion-icon {
  font-size: 18px;
}

.tu-campo-body #panel-inicio .inicio-side-slot--condiciones[hidden] {
  display: none !important;
}

.tu-campo-body #panel-inicio .inicio-side-slot--condiciones {
  margin: 0 0 12px;
}

.tu-campo-body #panel-inicio .inicio-condiciones-card {
  background: var(--dash-surface-bg, #ffffff);
  border: 1px solid var(--dash-surface-border-color, #e5e0d8);
  border-radius: 12px;
  box-shadow: var(--dash-surface-shadow, none);
  padding: 14px 14px 12px;
}

.tu-campo-body #panel-inicio .inicio-condiciones-card--nested {
  margin-top: 10px;
  padding: 12px;
  box-shadow: none;
}

.tu-campo-body #panel-inicio .inicio-condiciones-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6a60;
}

.tu-campo-body #panel-inicio .inicio-condiciones-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2e2218;
  line-height: 1.25;
}

.tu-campo-body #panel-inicio .inicio-condiciones-status {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #2e2218;
}

.tu-campo-body #panel-inicio .inicio-condiciones-window {
  margin: 0 0 8px;
}

.tu-campo-body #panel-inicio .inicio-condiciones-window-label {
  margin: 0;
  font-size: 12px;
  color: #6f6a60;
}

.tu-campo-body #panel-inicio .inicio-condiciones-window-value {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #2e2218;
}

.tu-campo-body #panel-inicio .inicio-condiciones-window-fallback,
.tu-campo-body #panel-inicio .inicio-condiciones-body,
.tu-campo-body #panel-inicio .inicio-condiciones-reason,
.tu-campo-body #panel-inicio .inicio-condiciones-muted,
.tu-campo-body #panel-inicio .inicio-condiciones-updated,
.tu-campo-body #panel-inicio .inicio-condiciones-stale-banner {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #7a7268;
}

.tu-campo-body #panel-inicio .inicio-condiciones-vars,
.tu-campo-body #condiciones-modal .inicio-condiciones-vars,
.tu-campo-body #condiciones-modal .inicio-condiciones-reasons,
.tu-campo-body #condiciones-modal .inicio-condiciones-limitations {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.tu-campo-body #panel-inicio .inicio-condiciones-vars li,
.tu-campo-body #condiciones-modal .inicio-condiciones-vars li,
.tu-campo-body #condiciones-modal .inicio-condiciones-reasons li,
.tu-campo-body #condiciones-modal .inicio-condiciones-limitations li {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
  color: #2e2218;
  word-break: break-word;
}

.tu-campo-body #panel-inicio .inicio-condiciones-cta {
  margin-top: 4px;
  width: 100%;
  min-height: 40px;
}

.tu-campo-body #condiciones-modal .inicio-condiciones-detail-label {
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6f6a60;
}

.tu-campo-body #condiciones-modal .inicio-condiciones-meta,
.tu-campo-body #condiciones-modal .inicio-condiciones-updated,
.tu-campo-body #condiciones-modal .inicio-condiciones-warning {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #7a7268;
}

.tu-campo-body #condiciones-modal .inicio-condiciones-warning {
  font-weight: 600;
}

.tu-campo-body #condiciones-modal .inicio-condiciones-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tu-campo-body #condiciones-modal .inicio-condiciones-detail-actions .btn {
  min-height: 40px;
}

/* =============================================================================
   Sidebar global — mockup-aligned (sidebar + drawer)
   ============================================================================= */

.tu-campo-body .dashboard-shell {
  --shell-nav-text: #25221d;
  --shell-nav-muted: #6f6a60;
  --shell-nav-active-bg: #eaf3de;
  --shell-nav-active-text: #3b6d11;
  --shell-nav-border: #e5e0d8;
  --shell-nav-badge: #d85a30;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) {
  background: #ffffff !important;
  border-right: 1px solid var(--shell-nav-border) !important;
  padding: 20px 14px 16px !important;
}

.tu-campo-body .tc-sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}

.tu-campo-body .tc-sidebar-header-divider {
  height: 1px;
  margin: 16px 0 14px;
  background: var(--shell-nav-border);
  flex-shrink: 0;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-sidebar-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px 5px 8px;
  border: none !important;
  border-radius: 999px;
  background: var(--shell-nav-active-bg) !important;
  color: var(--shell-nav-active-text) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
  text-decoration: none;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-sidebar-plan.is-free {
  background: #f5ede3 !important;
  color: #25221d !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-plan-badge-icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--shell-green, #6a9e48);
  flex-shrink: 0;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-sidebar-plan.is-free .tc-plan-badge-icon {
  background: #c4a882;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-sidebar-plan-renewal {
  margin: 0;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--shell-nav-muted);
}

.tu-campo-body .tc-sidebar-nav,
.tu-campo-body .tc-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 2px;
}

.tu-campo-body .tc-sidebar-nav-primary,
.tu-campo-body .tc-sidebar-nav-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tu-campo-body .tc-sidebar-nav-section {
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

.tu-campo-body .tc-sidebar-section-label {
  margin: 0 0 10px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-nav-muted);
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px !important;
  border: none !important;
  border-radius: 12px;
  background: transparent;
  color: var(--shell-nav-text) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  box-shadow: none !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item .tc-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--shell-nav-text);
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item .tc-nav-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item:not(.active):not([aria-selected="true"]):is(:hover, :focus-visible) {
  background: rgba(37, 34, 29, 0.04) !important;
  color: var(--shell-nav-text) !important;
  border: none !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item:is(.active, [aria-selected="true"]) {
  background: var(--shell-nav-active-bg) !important;
  color: var(--shell-nav-active-text) !important;
  font-weight: 600;
  border: none !important;
  border-left: none !important;
  padding-left: 12px !important;
  box-shadow: none !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item:is(.active, [aria-selected="true"]) .tc-nav-icon {
  color: var(--shell-nav-active-text) !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-badge {
  position: static;
  top: auto;
  right: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--shell-nav-badge) !important;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
}

.tu-campo-body .tc-sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--shell-nav-border) !important;
}

.tu-campo-body .tc-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.tu-campo-body .tc-sidebar-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--shell-nav-active-bg);
  color: var(--shell-nav-active-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.tu-campo-body .tc-sidebar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.tu-campo-body .tc-sidebar-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--shell-nav-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tu-campo-body .tc-sidebar-user-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--shell-nav-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tu-campo-body .tc-sidebar-user-role.hidden {
  display: none;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-sidebar-salir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 6px;
  border: none !important;
  border-top: none !important;
  border-radius: 8px;
  background: transparent;
  color: var(--shell-nav-muted);
  cursor: pointer;
  text-decoration: none;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-sidebar-salir--icon svg {
  display: block;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-sidebar-salir:is(:hover, :focus-visible) {
  color: var(--shell-nav-text);
  background: rgba(37, 34, 29, 0.05);
}

.tu-campo-body .tc-nav-drawer-panel {
  gap: 0;
}

@media (min-width: 768px) {
  .tu-campo-body .dashboard-sidebar {
    padding-top: 20px !important;
  }
}

/* =============================================================================
   Production hotfix — beat estilos.css B5/B6/B7 late overrides (cascade tail)
   ============================================================================= */

/* --- Sidebar: flex column, white surface, logo, plan pill, footer (desktop + drawer) --- */
@media (min-width: 768px) {
  .tu-campo-body #sidebar.dashboard-sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    background: #ffffff !important;
    border-right: 1px solid #e5e0d8 !important;
  }

  /* Desktop: hamburguesa oculta/muestra el sidebar permanente */
  .tu-campo-body .dashboard-shell.dashboard-shell--nav-collapsed #sidebar.dashboard-sidebar {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .tu-campo-body .dashboard-topbar .tc-menu-btn,
  .tu-campo-body .dashboard-topbar #btn-open-nav {
    display: inline-flex !important;
  }
}

.tu-campo-body .tc-nav-drawer-panel {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  background: #ffffff !important;
  border-right: 1px solid #e5e0d8 !important;
}

.tu-campo-body :is(.tc-sidebar-logo, .tc-drawer-logo),
.tu-campo-body :is(.tc-sidebar-logo, .tc-drawer-logo):hover,
.tu-campo-body :is(.tc-sidebar-logo, .tc-drawer-logo):focus-visible {
  text-decoration: none !important;
  color: #25221d !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) :is(.tc-sidebar-plan, .tc-drawer-plan) {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 5px 10px 5px 8px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #eaf3de !important;
  color: #3b6d11 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  text-align: left !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) :is(.tc-sidebar-plan, .tc-drawer-plan).is-free {
  background: #f5ede3 !important;
  color: #25221d !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) :is(.tc-sidebar-plan, .tc-drawer-plan):not(.is-free):hover,
.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) :is(.tc-sidebar-plan, .tc-drawer-plan):not(.is-free):focus-visible {
  background: #eaf3de !important;
  border: none !important;
  color: #3b6d11 !important;
  box-shadow: none !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item {
  border: none !important;
  border-left: none !important;
  border-radius: 12px !important;
  color: #25221d !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item:is(.active, [aria-selected="true"]) {
  background: #eaf3de !important;
  color: #3b6d11 !important;
  border: none !important;
  border-left: none !important;
  padding-left: 12px !important;
  box-shadow: none !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-item:is(.active, [aria-selected="true"]) .tc-nav-icon {
  color: #3b6d11 !important;
}

.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-badge {
  background: #d85a30 !important;
  color: #ffffff !important;
}

.tu-campo-body .tc-sidebar-section-label {
  margin: 0 0 10px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #6f6a60 !important;
}

.tu-campo-body .tc-sidebar-footer {
  margin-top: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e5e0d8 !important;
}

.tu-campo-body .tc-sidebar-user {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.tu-campo-body .tc-sidebar-user-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.tu-campo-body .dashboard-shell .tc-sidebar-user .tc-sidebar-salir.tc-sidebar-salir--icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 6px !important;
  border: none !important;
  border-top: none !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Topbar: white actions, campo chip with icon --- */
.tu-campo-body .dashboard-topbar .tc-top-actions :is(.tc-header-action, .tc-contact-btn, .tc-help-btn) {
  background: #ffffff !important;
  border: 1px solid #e5e0d8 !important;
  color: #25221d !important;
  box-shadow: none !important;
}

.tu-campo-body .topbar-campo-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 34px 0 10px !important;
}

.tu-campo-body .topbar-campo-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 34px 0 10px !important;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact::before {
  content: "🌾";
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact::after {
  right: 12px;
}

/* --- Inicio: full width in main pane --- */
@media (min-width: 768px) {
  .tu-campo-body .dashboard-shell #main-layout {
    padding-left: 0 !important;
  }

  .tu-campo-body .dashboard-shell #content.dashboard-content {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.tu-campo-body #panel-inicio.tc-panel {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.tu-campo-body #panel-inicio .tc-page--inicio-d46 {
  width: 100% !important;
  max-width: 1200px !important;
  box-sizing: border-box;
}

.tu-campo-body #panel-inicio .tc-page--inicio-d46 .tc-page-body,
.tu-campo-body #panel-inicio .inicio-d46-body,
.tu-campo-body #panel-inicio .inicio-grid {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

/* --- Stats: 4-column grid on desktop --- */
.tu-campo-body #panel-inicio .inicio-stats-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

@media (max-width: 1100px) {
  .tu-campo-body #panel-inicio .inicio-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 559px) {
  .tu-campo-body #panel-inicio .inicio-stats-row {
    grid-template-columns: 1fr !important;
  }
}

/* --- Grid inferior + acciones rápidas 2×2 --- */
.tu-campo-body #panel-inicio .inicio-d46-body,
.tu-campo-body #panel-inicio .inicio-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px) !important;
  gap: 20px !important;
  align-items: start !important;
}

.tu-campo-body #panel-inicio .inicio-d46-col--side {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-width: 0 !important;
}

@media (max-width: 1024px) {
  .tu-campo-body #panel-inicio .inicio-d46-body,
  .tu-campo-body #panel-inicio .inicio-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 559px) {
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-grid,
  .tu-campo-body #panel-inicio .inicio-d113-acciones .inicio-d113-acciones-row {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================================================
   Mobile shell — full-width content, drawer nav, fixed bottom bar
   ============================================================================= */

@media (max-width: 767px) {
  .tu-campo-body #sidebar.dashboard-sidebar {
    display: none !important;
    flex: none !important;
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .tu-campo-body .dashboard-shell #main-layout {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    overflow-x: hidden !important;
  }

  .tu-campo-body .dashboard-main-pane {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .tu-campo-body .dashboard-shell #content.dashboard-content {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0)) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .tu-campo-body .dashboard-topbar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
    min-width: 0 !important;
  }

  .tu-campo-body .dashboard-topbar #btn-open-nav {
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }

  .tu-campo-body .topbar-campo-slot {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .tu-campo-body .topbar-campo-slot .ctx-campo-bar--compact,
  .tu-campo-body .topbar-campo-chip {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tu-campo-body .topbar-campo-slot .ctx-campo-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tu-campo-body .dashboard-topbar .tc-top-actions {
    flex-shrink: 0 !important;
    gap: 4px !important;
  }

  .tu-campo-body .dashboard-topbar .tc-contact-btn,
  .tu-campo-body .dashboard-topbar .tc-help-btn {
    display: none !important;
  }

  .tu-campo-body .dashboard-topbar .tc-header-wa-btn .tc-header-btn-label {
    display: none !important;
  }

  /* Bottom nav: outer nav is a wrapper; items grid spans full width */
  .tu-campo-body .tc-bottom-nav {
    display: block !important;
    left: 0 !important;
    right: 0 !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0)) !important;
    box-sizing: border-box !important;
  }

  .tu-campo-body .tc-bottom-nav-items {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
  }

  .tu-campo-body .tc-bottom-nav .tc-nav-item {
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 4px 2px !important;
    font-size: 11px !important;
  }

  .tu-campo-body .tc-bottom-nav .tc-nav-item .tc-nav-label {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Registros: stack title, meta and actions vertically */
  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "meta"
      "hint"
      "actions" !important;
    gap: 4px !important;
  }

  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-head,
  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-meta,
  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-actions,
  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-ganadero-wa-hint {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .tu-campo-body #panel-historial .dash-module-list.registros-module-list .registro-item-actions {
    justify-content: flex-start !important;
    margin-top: 4px !important;
    padding-top: 6px !important;
    border-top: 1px solid var(--dash-module-divider) !important;
  }
}

/* Mi campo — progress + Pro upsell cards match campo-node surface */
.tu-campo-body #content .tc-page--mi-campo .campos-progress,
.tu-campo-body #content .tc-page--mi-campo .tc-pro-upsell-card {
  border: 1px solid #eae6e0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(46, 34, 24, 0.05) !important;
}

.tu-campo-body #content .tc-page--mi-campo .campos-progress {
  padding: 14px 16px !important;
  margin-bottom: 20px !important;
}

.tu-campo-body #content .tc-page--mi-campo .tc-pro-upsell-card {
  margin-top: 20px !important;
  padding: 16px 18px !important;
}
