/* =============================================================================
   Dashboard Professional System R1
   Unifica layout, tipografía, botones, tablas, badges, empty states y responsive
   sin cambiar identidad Surco ni capacidades. Reutiliza tokens --shell-* / --dash-*.
   ============================================================================= */

.tu-campo-body .dashboard-shell {
  /* Page container canónico */
  --dps-content-max: 1120px;
  --dps-page-gap: 24px;
  --dps-header-gap: 8px;
  --dps-section-gap: 20px;
  --dps-toolbar-gap: 16px;

  /* Tipografía */
  --dps-ink: #2e2218;
  --dps-title-size: 1.5rem;
  --dps-title-weight: 700;
  --dps-lead-size: 0.9375rem;
  --dps-lead-color: var(--shell-topbar-muted, #5a7268);
  --dps-section-size: 1.0625rem;
  --dps-label-size: 0.8125rem;
  --dps-body-size: 0.9375rem;
  --dps-meta-size: 0.8125rem;
  --dps-table-head-size: 0.75rem;

  /* Controles */
  --dps-control-h: 40px;
  --dps-btn-radius: var(--shell-btn-radius, 10px);
  --dps-focus-ring: 0 0 0 3px rgba(7, 63, 42, 0.22);

  /* Estados (labels humanos; semántica visual) */
  --dps-status-pendiente-bg: #fff8ef;
  --dps-status-pendiente-fg: #9a5b1f;
  --dps-status-programado-bg: #f4f8fc;
  --dps-status-programado-fg: #2f5f8a;
  --dps-status-enviado-bg: #eef6e8;
  --dps-status-enviado-fg: #2f6b2a;
  --dps-status-curso-bg: #eef4fb;
  --dps-status-curso-fg: #2a5f9e;
  --dps-status-completado-bg: #e8f3ea;
  --dps-status-completado-fg: #1f6b3a;
  --dps-status-vencido-bg: #fff1ef;
  --dps-status-vencido-fg: #b42318;
  --dps-status-cancelado-bg: #f3f1ee;
  --dps-status-cancelado-fg: #5c564e;
  --dps-status-error-bg: #fef2f2;
  --dps-status-error-fg: #b42318;
  --dps-status-atencion-bg: #fff6e8;
  --dps-status-atencion-fg: #a35b12;
}

/* -----------------------------------------------------------------------------
   1. Layout canónico de página
   ----------------------------------------------------------------------------- */

.tu-campo-body #content.dashboard-content > .tc-panel {
  width: 100%;
  max-width: var(--dps-content-max);
  margin-left: auto;
  margin-right: auto;
}

.tu-campo-body #content .tc-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tu-campo-body #content .tc-page-header {
  margin-bottom: var(--dps-page-gap);
}

.tu-campo-body #content .tc-page-header .dash-page-title {
  font-size: var(--dps-title-size);
  font-weight: var(--dps-title-weight);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--dps-ink, #2e2218);
  text-transform: none;
}

.tu-campo-body #content .tc-page-header .dash-page-lead {
  font-size: var(--dps-lead-size);
  line-height: 1.45;
  color: var(--dps-lead-color);
  max-width: 42rem;
}

.tu-campo-body #content .tc-page-body {
  display: flex;
  flex-direction: column;
  gap: var(--dps-section-gap);
  min-width: 0;
}

.tu-campo-body #content .dash-page-toolbar {
  margin-bottom: var(--dps-toolbar-gap);
}

/* Evitar anchos/márgenes arbitrarios por panel */
.tu-campo-body #content .tc-page :is(
  .ordenes-header-row,
  .comercial-page-header,
  .equipo-panel-head,
  .insumos-section > .ordenes-header-row
) {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Inicio: sin forzar max-width distinto del shell */
.tu-campo-body #panel-inicio {
  max-width: var(--dps-content-max);
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------------------------------------------
   2. Tipografía / jerarquía (menos ALL CAPS)
   ----------------------------------------------------------------------------- */

.tu-campo-body #content .dash-section-title,
.tu-campo-body #content .inicio-d4-section-title,
.tu-campo-body #content .inicio-hoy-section-title,
.tu-campo-body #content .comercial-section-title,
.tu-campo-body #content .equipo-panel-title,
.tu-campo-body #content .section-title,
.tu-campo-body #content .mc-form-section-title {
  font-size: var(--dps-section-size);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--dps-ink, #2e2218);
}

.tu-campo-body #content .dash-module-col,
.tu-campo-body #content .equipo-table thead th {
  font-size: var(--dps-table-head-size);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.9;
}

.tu-campo-body #content .dash-eyebrow,
.tu-campo-body #content .inicio-comercial-promo-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.tu-campo-body #content .timeline-day-title {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--shell-topbar-muted, #5a7268);
}

.tu-campo-body #content :is(
  .dash-page-lead,
  .section-lead,
  .field-hint,
  .tc-operational-empty-helper,
  .equipo-user-tel,
  .recordatorio-item-meta
) {
  color: var(--dps-lead-color);
}

/* Labels de sidebar: title case suave, no gritos */
.tu-campo-body :is(#sidebar, .tc-nav-drawer-panel) .tc-nav-section-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   3. Botones y controles
   ----------------------------------------------------------------------------- */

.tu-campo-body #content :is(
  .btn-primary,
  .btn-secondary,
  a.btn-primary,
  a.btn-secondary,
  .dash-primary-action,
  .btn-comercial-outline,
  .btn-insumos-toggle,
  .btn-equipo-invitar
) {
  min-height: var(--dps-control-h);
  border-radius: var(--dps-btn-radius);
  box-sizing: border-box;
}

.tu-campo-body #content .btn-sm {
  min-height: 34px;
}

.tu-campo-body #content :is(
  .btn-primary,
  .btn-secondary,
  .btn-link,
  .dash-primary-action,
  .btn-icon,
  .dash-action-menu-trigger
):focus-visible {
  outline: none;
  box-shadow: var(--dps-focus-ring);
}

.tu-campo-body #content :is(.btn-primary, .dash-primary-action)[disabled],
.tu-campo-body #content :is(.btn-primary, .dash-primary-action).is-loading {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}

.tu-campo-body #content .btn-comercial-outline {
  border: 1px solid var(--shell-green, #073f2a);
  color: var(--shell-green, #073f2a);
  background: #fff;
}

.tu-campo-body #content .btn-comercial-outline:hover {
  background: var(--shell-green-soft, rgba(214, 246, 174, 0.35));
}

/* Una acción primaria dominante en filas de acciones */
.tu-campo-body #content .dash-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tu-campo-body #content .dash-action-row .btn-primary ~ .btn-primary {
  /* Evitar dos primarias iguales: degradar extras */
  background: transparent;
  color: var(--shell-green, #073f2a);
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
}

/* Search / filter controls */
.tu-campo-body #content :is(
  .dash-toolbar-search-input,
  .tc-search-input,
  .registros-inp,
  .ctx-campo-select,
  select.registros-inp,
  .historial-search
) {
  min-height: var(--dps-control-h);
  border-radius: var(--dps-btn-radius);
  font-size: var(--dps-body-size);
}

.tu-campo-body #content :is(
  .dash-toolbar-search-input,
  .tc-search-input,
  .registros-inp,
  .ctx-campo-select,
  .historial-search
):focus-visible {
  outline: none;
  box-shadow: var(--dps-focus-ring);
  border-color: rgba(7, 63, 42, 0.35);
}

/* -----------------------------------------------------------------------------
   4. Tablas / module lists
   ----------------------------------------------------------------------------- */

.tu-campo-body #content .dash-module-list-head {
  padding: 10px 16px;
}

.tu-campo-body #content .dash-module-list-body > :is(
  .orden-item-card,
  .registro-item-card,
  .recordatorio-item-card,
  .informe-row,
  article
) {
  padding: 12px 16px;
}

.tu-campo-body #content .dash-module-list-body > :is(
  .orden-item-card,
  .registro-item-card,
  .recordatorio-item-card
):hover {
  background: var(--dash-module-hover, #faf9f7);
}

.tu-campo-body #content .dash-module-list-body > :is(
  .orden-item-card.is-clickable,
  .registro-item-card.is-clickable,
  .insumos-item-btn
) {
  cursor: pointer;
}

.tu-campo-body #content .equipo-table {
  width: 100%;
  border-collapse: collapse;
}

.tu-campo-body #content .equipo-table th,
.tu-campo-body #content .equipo-table td {
  padding: 12px 14px;
  vertical-align: middle;
  text-align: left;
}

.tu-campo-body #content .equipo-table tbody tr:hover {
  background: var(--dash-module-hover, #faf9f7);
}

.tu-campo-body #content :is(
  .ordenes-table-empty,
  .recordatorios-table-empty,
  .equipo-table-empty,
  .registros-table-empty
) {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--dps-lead-color);
  font-size: var(--dps-body-size);
}

/* -----------------------------------------------------------------------------
   5. Status badges
   ----------------------------------------------------------------------------- */

.tu-campo-body #content .tc-estado-badge,
.tu-campo-body #content .dps-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tu-campo-body #content :is(
  .tc-estado-badge--pendiente,
  .dps-status-badge--pendiente
) {
  background: var(--dps-status-pendiente-bg);
  color: var(--dps-status-pendiente-fg);
  border-color: rgba(154, 91, 31, 0.18);
}

.tu-campo-body #content :is(
  .tc-estado-badge--programado,
  .dps-status-badge--programado
) {
  background: var(--dps-status-programado-bg);
  color: var(--dps-status-programado-fg);
  border-color: rgba(47, 95, 138, 0.16);
}

.tu-campo-body #content :is(
  .tc-estado-badge--enviada,
  .tc-estado-badge--enviado,
  .dps-status-badge--enviado,
  .dps-status-badge--enviada
) {
  background: var(--dps-status-enviado-bg);
  color: var(--dps-status-enviado-fg);
  border-color: rgba(47, 107, 42, 0.16);
}

.tu-campo-body #content :is(
  .tc-estado-badge--en-curso,
  .tc-estado-badge--curso,
  .dps-status-badge--en-curso,
  .dps-status-badge--en_curso
) {
  background: var(--dps-status-curso-bg);
  color: var(--dps-status-curso-fg);
  border-color: rgba(42, 95, 158, 0.16);
}

.tu-campo-body #content :is(
  .tc-estado-badge--completado,
  .tc-estado-badge--hecha,
  .dps-status-badge--completado,
  .dps-status-badge--hecha
) {
  background: var(--dps-status-completado-bg);
  color: var(--dps-status-completado-fg);
  border-color: rgba(31, 107, 58, 0.16);
}

.tu-campo-body #content :is(
  .tc-estado-badge--vencido,
  .dps-status-badge--vencido
) {
  background: var(--dps-status-vencido-bg);
  color: var(--dps-status-vencido-fg);
  border-color: rgba(180, 35, 24, 0.16);
}

.tu-campo-body #content :is(
  .tc-estado-badge--cancelado,
  .dps-status-badge--cancelado
) {
  background: var(--dps-status-cancelado-bg);
  color: var(--dps-status-cancelado-fg);
  border-color: rgba(92, 86, 78, 0.16);
}

.tu-campo-body #content :is(
  .tc-estado-badge--error,
  .tc-estado-badge--fallido,
  .dps-status-badge--error,
  .dps-status-badge--fallido
) {
  background: var(--dps-status-error-bg);
  color: var(--dps-status-error-fg);
  border-color: rgba(180, 35, 24, 0.18);
}

.tu-campo-body #content :is(
  .tc-estado-badge--atencion,
  .tc-estado-badge--nuevo,
  .dps-status-badge--atencion,
  .dps-status-badge--atencion-alta
) {
  background: var(--dps-status-atencion-bg);
  color: var(--dps-status-atencion-fg);
  border-color: rgba(163, 91, 18, 0.18);
}

/* -----------------------------------------------------------------------------
   6. Empty / loading / error
   ----------------------------------------------------------------------------- */

.tu-campo-body #content .tc-operational-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 36px 24px;
  background: var(--dash-surface-bg, #fff);
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
  border-radius: 12px;
  box-shadow: var(--dash-surface-shadow);
}

.tu-campo-body #content .tc-operational-empty-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--dps-ink, #2e2218);
}

.tu-campo-body #content .tc-operational-empty-helper {
  margin: 0;
  max-width: 28rem;
  font-size: var(--dps-lead-size);
}

.tu-campo-body #content .tc-operational-empty-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tu-campo-body #content :is(
  .recordatorios-empty,
  .registros-empty,
  .timeline-empty-card
) .tc-operational-empty {
  /* Nested empty wrappers reuse same surface */
  box-shadow: none;
}

.tu-campo-body #content .dps-loading,
.tu-campo-body #content .vacio.dps-loading {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--dps-lead-color);
  font-size: var(--dps-body-size);
}

.tu-campo-body #content .dash-panel-fetch-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: #fef2f2;
}

/* -----------------------------------------------------------------------------
   7. Action menu (menú contextual)
   ----------------------------------------------------------------------------- */

.tu-campo-body #content .dash-action-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tu-campo-body #content .dash-action-menu-trigger {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
  background: #fff;
  color: var(--shell-topbar-muted, #5a7268);
  cursor: pointer;
}

.tu-campo-body #content .dash-action-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  min-width: 168px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
  background: #fff;
  box-shadow: 0 8px 24px rgba(46, 34, 24, 0.12);
}

.tu-campo-body #content .dash-action-menu-panel .dash-action-menu-item {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  min-height: auto;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--dps-ink, #2e2218);
  cursor: pointer;
}

.tu-campo-body #content .dash-action-menu-panel .dash-action-menu-item:hover,
.tu-campo-body #content .dash-action-menu-panel .dash-action-menu-item:focus-visible {
  background: var(--dash-module-hover, #faf9f7);
  outline: none;
}

.tu-campo-body #content .dash-action-menu-panel .dash-action-menu-item--destructive {
  color: #b42318;
}

/* -----------------------------------------------------------------------------
   8. Cards de resumen / sección
   ----------------------------------------------------------------------------- */

.tu-campo-body #content .dps-summary-card,
.tu-campo-body #content .dps-section-card {
  background: var(--dash-surface-bg, #fff);
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
  border-radius: 12px;
  box-shadow: var(--dash-surface-shadow);
  padding: 16px 18px;
}

.tu-campo-body #content .dps-summary-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.tu-campo-body #content .dps-summary-card-label {
  display: block;
  font-size: var(--dps-meta-size);
  color: var(--dps-lead-color);
  margin-bottom: 4px;
}

.tu-campo-body #content .dps-summary-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dps-ink, #2e2218);
}

/* Incluir Comercial / Insumos / Equipo / Campos en superficies unificadas */
.tu-campo-body :is(
  #panel-comercial,
  #panel-insumos,
  #panel-equipo,
  #panel-mi-campo
) {
  --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 :is(
  .insumos-item,
  .insumos-detail,
  .comercial-flow-strip,
  .inicio-comercial-promo
) {
  background: var(--dash-surface-bg, #fff);
  border: 1px solid var(--dash-surface-border-color, #eae6e0);
  border-radius: 12px;
  box-shadow: var(--dash-surface-shadow);
}

.tu-campo-body #content .comercial-proposal-ribbon {
  display: none !important; /* copy interno de producto; no superficie de usuario */
}

/* -----------------------------------------------------------------------------
   9. Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .tu-campo-body .dashboard-shell {
    --dps-content-max: 100%;
  }
}

@media (max-width: 767px) {
  .tu-campo-body {
    --dash-content-pad-x: 14px;
    --dash-content-pad-y: 16px;
  }

  .tu-campo-body .dashboard-shell {
    --dps-title-size: 1.35rem;
    --dps-page-gap: 16px;
    --dps-section-gap: 16px;
  }

  .tu-campo-body #content .tc-page-header-action .dash-primary-action,
  .tu-campo-body #content .tc-page-header-action .btn-primary,
  .tu-campo-body #content .equipo-panel-toolbar .btn-primary,
  .tu-campo-body #content .btn-insumos-toggle {
    width: 100%;
  }

  .tu-campo-body #content .dash-module-list-head {
    display: none;
  }

  .tu-campo-body #content .equipo-table thead {
    display: none;
  }

  .tu-campo-body #content .equipo-table,
  .tu-campo-body #content .equipo-table tbody,
  .tu-campo-body #content .equipo-table tr,
  .tu-campo-body #content .equipo-table td {
    display: block;
    width: 100%;
  }

  .tu-campo-body #content .equipo-table-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--dash-module-divider, rgba(60, 40, 20, 0.07));
  }

  .tu-campo-body #content .equipo-table-cell {
    padding: 4px 14px;
  }

  .tu-campo-body #content .equipo-table-cell::before {
    content: attr(data-label);
    display: block;
    font-size: var(--dps-meta-size);
    color: var(--dps-lead-color);
    margin-bottom: 2px;
  }

  .tu-campo-body #content .equipo-table-cell--actions::before {
    content: none;
  }

  .tu-campo-body #content .dps-summary-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tu-campo-body #content .insumos-section .ordenes-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .tu-campo-body #content .dps-summary-card-grid {
    grid-template-columns: 1fr;
  }

  .tu-campo-body .dashboard-topbar .tc-top-actions .tc-contact-btn {
    display: none;
  }
}

/* Dashboard Activation R1 — checklist progress */
.tu-campo-body #content .onboarding-banner-progress-meta {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--shell-topbar-muted, #5a7268);
}
.tu-campo-body #content .onboarding-check-helper {
  margin: 2px 0 4px;
  font-size: 0.8125rem;
  color: var(--shell-topbar-muted, #5a7268);
}
.tu-campo-body #content .onboarding-check-item.is-opportunity {
  opacity: 0.92;
}
.tu-campo-body #content .inicio-onboarding-pro-opportunity {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--shell-topbar-muted, #5a7268);
}

/* Orders & Team Completeness R1 */
.tu-campo-body #panel-ordenes .dash-page-toolbar--stacked .dash-toolbar-filters {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.tu-campo-body #panel-ordenes .ordenes-equipo-hint {
  margin: 12px 0 4px;
  max-width: 42rem;
}

.tu-campo-body #panel-ordenes .ordenes-equipo-hint-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #7a7268;
}

.tu-campo-body #panel-ordenes .ordenes-equipo-hint-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
  font: inherit;
  font-weight: 500;
  color: var(--dps-ink, #2e2218);
  text-decoration: underline;
  text-decoration-color: rgba(46, 34, 24, 0.28);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.tu-campo-body #panel-ordenes .ordenes-equipo-hint-link:hover {
  color: #1a140f;
  text-decoration-color: rgba(46, 34, 24, 0.5);
  background: none;
}

.tu-campo-body #panel-ordenes .ordenes-equipo-hint-link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: var(--dps-focus-ring, 0 0 0 3px rgba(7, 63, 42, 0.22));
}

.tu-campo-body #panel-ordenes .ordenes-filter-vencidas .timeline-filter-label--checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tu-campo-body #panel-ordenes .ordenes-more-filters-control {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

/* Toggle tipográfico — no compite con selects ni con Crear orden */
.tu-campo-body #panel-ordenes .btn-ordenes-more-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: var(--dps-control-h, 36px);
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6b6358;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.tu-campo-body #panel-ordenes .btn-ordenes-more-filters:hover {
  color: var(--dps-ink, #2e2218);
  background: transparent;
}

.tu-campo-body #panel-ordenes .btn-ordenes-more-filters:focus-visible {
  outline: none;
  box-shadow: var(--dps-focus-ring);
  border-radius: 6px;
}

.tu-campo-body #panel-ordenes .btn-ordenes-more-filters.is-open,
.tu-campo-body #panel-ordenes .btn-ordenes-more-filters.has-active {
  color: var(--dps-ink, #2e2218);
  font-weight: 600;
}

.tu-campo-body #panel-ordenes .ordenes-more-filters-label {
  text-decoration: underline;
  text-decoration-color: rgba(107, 99, 88, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.tu-campo-body #panel-ordenes .btn-ordenes-more-filters:hover .ordenes-more-filters-label,
.tu-campo-body #panel-ordenes .btn-ordenes-more-filters.is-open .ordenes-more-filters-label {
  text-decoration-color: rgba(46, 34, 24, 0.4);
}

.tu-campo-body #panel-ordenes .ordenes-more-filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(46, 34, 24, 0.08);
  color: var(--dps-ink, #2e2218);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.tu-campo-body #panel-ordenes .ordenes-more-filters-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 1px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.tu-campo-body #panel-ordenes .btn-ordenes-more-filters.is-open .ordenes-more-filters-chevron {
  transform: rotate(180deg);
}

.tu-campo-body #panel-ordenes .ordenes-more-filters-panel {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
  width: 100%;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--dash-surface-border-color, #eae6e0);
}

.tu-campo-body #panel-ordenes .ordenes-more-filters-panel[hidden] {
  display: none;
}

@media (max-width: 559px) {
  .tu-campo-body #panel-ordenes .ordenes-more-filters-panel .timeline-filter-field {
    flex: 1 1 100%;
  }
}

.tu-campo-body #panel-ordenes .orden-unified-row--clickable {
  cursor: pointer;
}

.tu-campo-body #panel-ordenes .orden-unified-row--selected {
  outline: 2px solid var(--dash-accent, #2f6b4f);
  outline-offset: -2px;
}

.tu-campo-body #panel-ordenes .ordenes-command-layout {
  position: relative;
}

.tu-campo-body #panel-ordenes .orden-detalle-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 16, 12, 0.35);
  display: flex;
  justify-content: flex-end;
}

.tu-campo-body #panel-ordenes .orden-detalle-panel-inner {
  width: min(480px, 100%);
  max-height: 100vh;
  overflow: auto;
  background: var(--tc-surface, #fffdfa);
  padding: 16px 18px 24px;
  box-shadow: -8px 0 24px rgba(20, 16, 12, 0.12);
}

.tu-campo-body #panel-ordenes .orden-detalle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tu-campo-body #panel-ordenes .orden-detalle-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.tu-campo-body #panel-ordenes .orden-detalle-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tu-campo-body #panel-ordenes .orden-detalle-field--wide {
  grid-column: 1 / -1;
}

.tu-campo-body #panel-ordenes .orden-detalle-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dps-lead-color, #5a7268);
  margin-bottom: 4px;
}

.tu-campo-body #panel-ordenes .orden-detalle-limitacion {
  font-size: 0.8125rem;
  color: var(--dps-lead-color, #5a7268);
  margin: 0 0 16px;
}

.tu-campo-body #panel-ordenes .orden-detalle-section {
  margin: 16px 0;
}

.tu-campo-body #panel-ordenes .orden-detalle-section-title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.tu-campo-body #panel-ordenes .orden-detalle-historial-list,
.tu-campo-body #panel-ordenes .orden-detalle-avances-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tu-campo-body #panel-ordenes .orden-detalle-historial-item,
.tu-campo-body #panel-ordenes .orden-detalle-avance-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--dash-module-divider, rgba(60, 40, 20, 0.07));
}

.tu-campo-body #panel-ordenes .orden-detalle-avance-form textarea {
  width: 100%;
  margin: 6px 0 8px;
}

.tu-campo-body #panel-ordenes .orden-detalle-avance-note {
  font-size: 0.8125rem;
  color: var(--dps-lead-color, #5a7268);
  margin: 0 0 8px;
}

.tu-campo-body #content .equipo-estado-pill--activo {
  background: rgba(47, 107, 79, 0.12);
  color: #2f6b4f;
}

.tu-campo-body #content .equipo-estado-pill--desactivado {
  background: rgba(90, 90, 90, 0.12);
  color: #5a5a5a;
}

/* -----------------------------------------------------------------------------
   Copy ink — títulos y textos alineados a Inicio (“Hola, …”), no verde
   ----------------------------------------------------------------------------- */
.tu-campo-body #content :is(
  .dash-page-title,
  .tc-greeting,
  .informe-inicial-title,
  .informe-inicial-item strong,
  .informe-inicial-hint strong,
  .informe-report-title,
  .ordenes-section-title,
  .plan-section-title,
  .plan-hero-titulo,
  .registro-item-titulo,
  .recordatorio-item-msg,
  .orden-card-tarea,
  .timeline-item-titulo,
  .inicio-d4-item-title,
  .inicio-d113-item-title,
  .mas-admin-item-title,
  .attention-home-group-title,
  .attention-home-item-title,
  h1,
  h2:not(.inicio-d4-section-title):not(.attention-home-heading),
  h3:not(.inicio-hoy-section-title)
) {
  color: var(--dps-ink, #2e2218);
}

.tu-campo-body #content :is(
  a:not(.btn):not(.btn-primary):not(.btn-secondary),
  .btn-link,
  .btn-link-historial,
  .config-back,
  .btn-edit-colab,
  .btn-edit-labor,
  .btn-edit-recordatorio,
  .btn-ord-pend-edit,
  .btn-add-lote,
  .btn-quitar-lote,
  .inicio-hoy-link,
  .onboarding-check-cta,
  .campo-node-expand-hint,
  .lote-node-expand-hint,
  .ordenes-ver-mas
) {
  color: var(--dps-ink, #2e2218);
}

.tu-campo-body #content :is(
  a:not(.btn):not(.btn-primary):not(.btn-secondary):hover,
  .btn-link:hover,
  .btn-link-historial:hover,
  .config-back:hover,
  .inicio-hoy-link:hover,
  .onboarding-check-cta:hover
) {
  color: #1a140f;
}
