
:root {
  --bg: #f5f5f5;
  --primary: #1f2b38;
  --accent: #3498db;
}

/* HEADER COMÚN */
.main-header {
  background: var(--primary);
  color: #ecf0f1;
  padding: 6px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 28px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-menu button {
  background: transparent;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-menu button:hover {
  background: rgba(255, 255, 255, 0.20);
}

.top-menu button.active {
  background: rgba(255, 255, 255, 0.30);
}

.top-menu .danger {
  color: #f8d7da;
}

/* Badges de rol */
.role-badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.role-administrador { background: #fce2e0; color: #c0392b; }
.role-jefe          { background: #e1f7f1; color: #16a085; }
.role-trabajador    { background: #e3f2fd; color: #1565c0; }

.hidden { display: none !important; }

/* Global body background */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

/* Móvil */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
