/* Demo Work Order Detail — estilos alineados con MUI / WorkOrdersPage */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --sky: #0ea5e9;
  --sky-hover: #0284c7;
  --bg-page: #f8fafb;
  --bg-card: #fff;
  --border: #e8ecf0;
  --border-light: #f0f0f0;
  --text: #374151;
  --text-muted: #6b7280;
  --meta-bg: #f9fafb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #dc2626;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --font: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: #f5f5f5;
}

.material-icons-outlined {
  font-size: 18px;
  vertical-align: middle;
  line-height: 1;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap-main__content {
  flex: 1;
  margin: 10px;
  border: 2px solid #d0c9c9;
  border-radius: 10px;
  background: var(--bg-card);
  min-height: calc(100vh - 20px);
  overflow: hidden;
}

.wrap-main__content_body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.wo-page {
  height: 100%;
  overflow: auto;
  background: var(--bg-page);
  padding: 12px 24px 48px;
}

@media (min-width: 900px) {
  .wo-page { padding: 24px; }
}

.wo-page__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Breadcrumb */
.wo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.wo-breadcrumb__link {
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.wo-breadcrumb__link:hover { text-decoration: underline; }

.wo-breadcrumb__muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.wo-breadcrumb__code {
  font-weight: 700;
  font-size: 0.875rem;
  margin-left: 4px;
}

/* Card */
.wo-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wo-card__header {
  padding: 16px 24px 0;
}

@media (min-width: 900px) {
  .wo-card__header { padding: 24px 24px 0; }
}

.wo-card__body {
  padding: 16px 24px 24px;
}

.wo-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.wo-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.wo-title-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Tags */
.wo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip--category { background: #e0f2fe; color: #0369a1; }
.chip--outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: var(--text);
}
.chip--status { color: #fff; }
.chip--group { color: #fff; }

/* Metadata */
.wo-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--meta-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .wo-meta { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .wo-meta { grid-template-columns: repeat(8, 1fr); }
}

.wo-meta__item label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.wo-meta__item .value {
  font-size: 0.78rem;
  font-weight: 600;
}

.wo-meta__item .value--gain { color: var(--sky); font-weight: 700; }

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar--md { width: 34px; height: 34px; font-size: 0.75rem; }
.avatar--gray { background: #6b7280; }

.wo-meta__assignee {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.chip-priority {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  height: 22px;
  line-height: 18px;
}

.chip-priority--medium { background: #fef3c7; color: #92400e; }
.chip-priority--high { background: #ffedd5; color: #c2410c; }
.chip-priority--low { background: #f1f5f9; color: #475569; }
.chip-priority--critical { background: #fee2e2; color: #dc2626; }

.wo-progress-ring {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.wo-progress-ring svg {
  transform: rotate(-90deg);
}

.wo-progress-ring__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
}

.wo-meta__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.select-status {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 4px 28px 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  min-width: 120px;
  max-width: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* Tabs */
.wo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 24px;
  margin-top: 16px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}

.wo-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.wo-tab:hover { color: var(--sky); }

.wo-tab--active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

.wo-panel[hidden] { display: none !important; }

/* Sections */
.wo-section { margin-bottom: 24px; }

.wo-section--actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.wo-section__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.wo-description {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.875rem;
}

.wo-text-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.wo-text-block {
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.wo-text-block__title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wo-text-block__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
}

.wo-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 24px 0;
}

.wo-muted {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modules */
.wo-module { margin-bottom: 24px; }

.wo-module--amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 16px;
}

.wo-module__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.wo-module__head h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wo-module__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wo-icon-blue { color: #3b82f6; }
.wo-icon-amber { color: var(--warning); }
.wo-icon-purple { color: var(--purple); }
.wo-icon-indigo { color: var(--indigo); }

/* Justificacion rows */
.wo-just-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 4px;
  border: 1px solid #fde68a;
  border-radius: 4px;
  background: #fffef5;
  cursor: pointer;
  font-size: 0.78rem;
}

.wo-just-row:hover { background: #fef9e7; }

.wo-just-row .var-name { font-weight: 700; min-width: 100px; }
.wo-just-row .changed { color: #16a34a; font-weight: 600; }

/* Produccion */
.wo-prod-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wo-chart-wrap {
  flex: 1;
  min-width: 280px;
  height: 260px;
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px;
}

.wo-prod-table-wrap {
  flex: 1;
  min-width: 320px;
  max-height: 260px;
  display: flex;
  flex-direction: column;
}

.wo-expected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}

.wo-expected__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #166534;
}

.wo-expected__value {
  font-weight: 700;
  color: #166534;
  font-size: 0.85rem;
  cursor: pointer;
}

.wo-table-scroll {
  flex: 1;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
}

.wo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.wo-table th {
  background: #f9fafb;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
}

.wo-table th.num, .wo-table td.num { text-align: right; width: 75px; }
.wo-table th.center, .wo-table td.center { text-align: center; }

.wo-table td {
  padding: 6px 12px;
  border-bottom: 1px solid #f5f5f5;
}

.wo-table tr:hover td { background: #fafafa; }

.chip-tipo {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.chip-tipo--before { background: #e0f2fe; color: #1e40af; }
.chip-tipo--after { background: #dcfce7; color: #166534; }

/* Checklist */
.wo-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.wo-progress-bar {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.wo-progress-bar > div {
  height: 100%;
  background: var(--success);
  border-radius: 5px;
  transition: width 0.3s;
}

.wo-progress-pct {
  font-weight: 700;
  color: var(--success);
  font-size: 0.875rem;
  min-width: 110px;
  text-align: right;
}

.wo-checklist {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
}

.wo-check-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #f5f5f5;
  gap: 8px;
}

.wo-check-item:last-child { border-bottom: none; }
.wo-check-item:hover { background: #fafafa; }

.wo-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.wo-check-item.done .title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.wo-check-item .weight {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

.wo-check-item .actions { display: none; gap: 2px; }
.wo-checklist.editing .wo-check-item .actions { display: flex; }

/* Cartas Dinagraficas */
.btn-link--purple { color: var(--purple); }

.wo-cartas-empty {
  border: 2px dashed #e5e7eb;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: #fafafa;
}

.wo-cartas-empty .material-icons-outlined {
  font-size: 36px;
  color: #d1d5db;
  display: block;
  margin-bottom: 8px;
}

.wo-cartas-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wo-cartas-section-title--antes { color: #dc2626; }
.wo-cartas-section-title--despues { color: #16a34a; }

.wo-cartas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .wo-cartas-grid { grid-template-columns: 1fr 1fr; }
}

.wo-carta-card {
  border-radius: var(--radius);
  padding: 12px 14px;
  position: relative;
}

.wo-carta-card--antes {
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.wo-carta-card--despues {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.wo-carta-card__meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-right: 28px;
  line-height: 1.4;
}

.wo-carta-card__meta span {
  display: block;
  font-weight: 400;
  margin-top: 2px;
}

.wo-carta-card__chart {
  height: 140px;
  width: 100%;
  margin-top: 8px;
}

.wo-carta-card__delete {
  position: absolute;
  top: 6px;
  right: 6px;
}

/* Modal cartas browse */
.wo-cartas-browse {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-height: 420px;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .wo-cartas-browse { grid-template-columns: 1fr 1fr; }
}

.wo-carta-browse-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.wo-carta-browse-item.selected-antes {
  border: 2px solid #dc2626;
  background: #fef2f2;
}

.wo-carta-browse-item.selected-despues {
  border: 2px solid #16a34a;
  background: #f0fdf4;
}

.wo-carta-browse-item__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wo-carta-browse-item__actions button {
  flex: 1;
  padding: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  text-transform: none;
}

.btn-antes {
  border: 1px solid #fca5a5;
  background: #fff;
  color: #dc2626;
}

.btn-antes.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-despues {
  border: 1px solid #86efac;
  background: #fff;
  color: #16a34a;
}

.btn-despues.active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* Labels */
.wo-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

.label-chip button {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}

/* Meetings */
.wo-meeting {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  background: #fff;
}

.wo-meeting.completed {
  border-color: #86efac;
  background: #f0fdf4;
}

.wo-meeting__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

/* Comments */
.wo-comment {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.wo-comment__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.wo-comment-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.wo-comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

.wo-comment-form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.wo-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* Attachments */
.wo-attach-group h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sky);
  margin: 0 0 8px;
}

.wo-attach-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.wo-attach-row .name { flex: 1; }

.wo-info-box {
  margin-top: 16px;
  padding: 12px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Reviews */
.wo-review {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.wo-review.approved {
  border-color: #86efac;
  background: #f0fdf4;
}

.wo-review.rejected {
  border-color: #fca5a5;
  background: #fef2f2;
}

.wo-step-history {
  border-left: 2px solid #e5e7eb;
  padding-left: 16px;
  margin-top: 12px;
}

.wo-step-entry {
  position: relative;
  padding-bottom: 16px;
  font-size: 0.8rem;
}

.wo-step-entry::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  border: 2px solid #fff;
}

.wo-subsection-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}

.empty-state .material-icons-outlined {
  font-size: 48px;
  color: #d1d5db;
  display: block;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-outlined {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--text);
}

.btn-outlined:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.btn-primary {
  background: var(--sky);
  color: #fff;
}

.btn-primary:hover { background: var(--sky-hover); }

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover { background: #059669; }

.btn-sm { padding: 4px 12px; font-size: 0.75rem; }

.btn-link {
  background: none;
  border: none;
  color: var(--sky);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  padding: 4px 8px;
}

.btn-link--blue { color: #3b82f6; }
.btn-link--indigo { color: var(--indigo); }

.btn-icon {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.btn-icon:hover { background: #f3f4f6; }

.btn-icon--bordered {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.btn-icon--tiny .material-icons-outlined { font-size: 14px; }

/* Dropdown */
.dropdown {
  position: absolute;
  right: 24px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  min-width: 220px;
  z-index: 100;
  padding: 4px 0;
}

.dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
}

.dropdown button:hover { background: #f9fafb; }
.dropdown button.danger { color: var(--error); }
.dropdown hr { border: none; border-top: 1px solid #f0f0f0; margin: 4px 0; }

.wo-title-actions { position: relative; }

/* Modal */
.modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal::backdrop {
  background: rgba(0,0,0,.4);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal__header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.modal__body {
  padding: 16px 20px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.875rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Snackbar */
.snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  animation: slideUp 0.3s ease;
}

.snackbar.success { background: #059669; }
.snackbar.error { background: #dc2626; }
.snackbar.warning { background: #d97706; }

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

[hidden] { display: none !important; }

/* Tendencias (Well Summary style) */
.wo-module--trends { margin-top: 8px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.wo-trends-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { .wo-trends-grid { grid-template-columns: repeat(2, 1fr); } }
.wo-trend-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1); border: 1px solid #e8ecf0; overflow: hidden; }
.wo-trend-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; border-bottom: 1px solid #f3f4f6; }
.wo-trend-card__title-wrap { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; }
.wo-trend-card__bar { width: 3px; height: 16px; background: #1976d2; border-radius: 2px; flex-shrink: 0; margin-top: 3px; }
.wo-trend-card__title { margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; color: #111827; }
.wo-trend-card__subtitle { margin: 2px 0 0; font-size: 0.7rem; color: #6b7280; }
.wo-trend-card__actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.wo-trend-card__action { width: 28px; height: 28px; border: none; background: transparent; border-radius: 4px; cursor: pointer; color: #6b7280; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.wo-trend-card__action .material-icons-outlined { font-size: 17px; }
.wo-trend-card__action:hover { background: #f3f4f6; }
.wo-trend-card__action--active { background: #1976d2; color: #fff; }
.wo-trend-card__action--active:hover { background: #1565c0; color: #fff; }
.wo-trend-card__action--danger:hover { color: #dc2626; background: #fef2f2; }
.wo-trend-card__chart { height: 175px; padding: 4px 8px 10px; }
