/* ===========================================
   PAGINAS ESPECÍFICAS
   =========================================== */

/* CABECERA DE FICHA (Clientes, Máquinas, etc.) */
.page-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-default);
}
.page-header-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-default);
}
.page-header-icon img { width: 100%; height: 100%; object-fit: cover; }
.page-header-icon .lucide { width: 32px; height: 32px; color: var(--text-secondary); }
.page-header-info { flex: 1; min-width: 0; }
.page-header-info h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 0 0 4px 0; }
.page-header-info p { font-size: var(--text-md); color: var(--text-secondary); margin: 0; }
.page-header-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FILTROS DE LISTADO */
.list-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 24px;
}
.list-filters .form-group { flex: 1; min-width: 150px; }
.list-filters .btn { height: 42px; }

/* DETALLES (Label/Value) */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.d-label { font-size: var(--text-2xs); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }
.d-value { font-size: var(--text-md); color: var(--text-primary); font-weight: 500; word-break: break-word; }

/* TIMELINE (Historial) */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border-default); }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-elevated); border: 2px solid var(--brand-primary); }
.timeline-item .ti-time { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: 4px; }
.timeline-item .ti-text { font-size: var(--text-sm); color: var(--text-primary); }
.timeline-item .ti-changed { font-size: var(--text-xs); color: var(--text-secondary); background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: inline-block; }

/* DROPDOWN MENUS (Columnas, etc) */
.dropdown-menu {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 20;
}
.dropdown-header {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px 8px;
}

/* COLUMN TOGGLE ITEMS */
.col-toggle { display: flex; align-items: center; gap: 8px; padding: 8px; cursor: pointer; color: var(--text-primary); font-size: var(--text-sm); border-radius: var(--radius-sm); transition: background 0.2s; }
.col-toggle:hover { background: var(--bg-elevated); }
.col-toggle input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand-primary); }